Vouchers page: Show force active state

This commit is contained in:
Igor Scheller 2022-07-20 18:15:18 +02:00
parent bf58ba4a1c
commit 58d9750d0c
2 changed files with 9 additions and 2 deletions

View File

@ -158,7 +158,9 @@ function User_edit_vouchers_view($user)
button(user_link($user->id), icon('chevron-left') . __('back')) button(user_link($user->id), icon('chevron-left') . __('back'))
]), ]),
info(sprintf( info(sprintf(
__('Angel should receive at least %d vouchers.'), $user->state->force_active
? __('Angel should receive at least %d vouchers and is FA.')
: __('Angel should receive at least %d vouchers.'),
User_get_eligable_voucher_count($user) User_get_eligable_voucher_count($user)
), true), ), true),
form( form(

View File

@ -2535,9 +2535,14 @@ msgstr "Dein Passwort"
#: includes/view/User_view.php:148 #: includes/view/User_view.php:148
#, php-format #, php-format
msgid "Angel should receive at least %d vouchers." msgid "Angel should receive at least %d vouchers."
msgstr "Engel sollte mindestens %d Gutscheine bekommen." msgstr "Engel sollte mindestens %d Gutscheine bekommen."
#: includes/view/User_view.php:148
#, php-format
msgid "Angel should receive at least %d vouchers and is FA."
msgstr "Engel sollte mindestens %d Gutscheine bekommen und ist FA."
#: includes/view/User_view.php:153 #: includes/view/User_view.php:153
msgid "Number of vouchers given out" msgid "Number of vouchers given out"
msgstr "Anzahl Gutscheine bekommen" msgstr "Anzahl Gutscheine bekommen"