summaryrefslogtreecommitdiff
path: root/includes/view
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-03-22 14:40:52 +0100
committermsquare <msquare@notrademark.de>2016-03-22 14:40:52 +0100
commitc35cf85db5207133a53b316b2bde8ec46f53a274 (patch)
treea58f8ed4dc700d16d2165e474f51694d8bce4352 /includes/view
parent1da3cba5a70328780a362af0ec06e9f6a689562a (diff)
parent661e5595c4f5844cec94f4fb304c16650fa3b211 (diff)
Merge pull request #243 from tike/calculate_vouchers
issue #242 - make app caluclate number of vouchers for angels
Diffstat (limited to 'includes/view')
-rw-r--r--includes/view/User_view.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php
index 09668d6f..dbdc617b 100644
--- a/includes/view/User_view.php
+++ b/includes/view/User_view.php
@@ -45,8 +45,10 @@ function User_edit_vouchers_view($user) {
buttons([
button(user_link($user), glyph('chevron-left') . _("back"))
]),
+ heading(sprintf(_("angel should receive at least %d vouchers."), User_get_eligable_voucher_count($user)), 3),
+ heading(_("This is a automatically calculated MINIMUM value, you can of course give out more if appropriate!"), 4),
form([
- form_spinner('vouchers', _("Number of vouchers"), $user['got_voucher']),
+ form_spinner('vouchers', _("Number of vouchers given out"), $user['got_voucher']),
form_submit('submit', _("Save"))
], page_link_to('users') . '&action=edit_vouchers&user_id=' . $user['UID'])
]);