diff options
author | Struan Donald <struan@exo.org.uk> | 2018-10-15 16:47:39 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2018-10-19 14:31:45 +0100 |
commit | b57df33a0714d6ee6fb897887eb20b0387321afc (patch) | |
tree | 7e9eee152f338b084e13c9a8fa7350be6ec05eac /templates | |
parent | 00db75c5734b3bd6229599e741622b25405c3b9c (diff) |
add alert editing to user edit page in admin
disable, enable and delete for user alerts on user_edit page
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/admin/user-alerts.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/web/base/admin/user-alerts.html b/templates/web/base/admin/user-alerts.html index 1da9729d7..6058e595b 100644 --- a/templates/web/base/admin/user-alerts.html +++ b/templates/web/base/admin/user-alerts.html @@ -1,5 +1,8 @@ [% IF alerts.size %] <h3>[% loc("User's alerts") %]</h3> +<form method="POST"> +<input type="hidden" name="token" value="[% csrf_token %]" > +<input type="hidden" name="update_alerts" value="1" > <table> <tr> <th>[% loc('ID') %]</th> @@ -7,6 +10,9 @@ <th>[% loc('Confirmed') %]</th> <th>[% loc('State') %]</th> <th>[% loc('Details') %]</th> + <th>[% loc('Enable') %]</th> + <th>[% loc('Disable') %]</th> + <th>[% loc('Delete') %]</th> </tr> [% FOREACH alert IN alerts %] <tr> @@ -43,7 +49,12 @@ [% alert.parameter %] [% alert.parameter2 %] [% END %] </td> + <td><input type="radio" name="edit_alert[[% alert.id %]]" value="enable"[% ' disabled' UNLESS alert.whendisabled %]></td> + <td><input type="radio" name="edit_alert[[% alert.id %]]" value="disable"[% ' disabled' IF alert.whendisabled %]></td> + <td><input type="radio" name="edit_alert[[% alert.id %]]" value="delete"></td> </tr> [% END %] </table> +<input type="submit" value="[% loc('Update') %]"> +</form> [% END %] |