aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/admin/user-form.html4
-rw-r--r--templates/web/base/admin/user_edit.html7
2 files changed, 7 insertions, 4 deletions
diff --git a/templates/web/base/admin/user-form.html b/templates/web/base/admin/user-form.html
index 5adc200a1..388434e80 100644
--- a/templates/web/base/admin/user-form.html
+++ b/templates/web/base/admin/user-form.html
@@ -2,9 +2,7 @@
<input type="hidden" name="token" value="[% csrf_token %]" >
<input type="hidden" name="submit" value="1" >
- [% IF c.cobrand.moniker == 'zurich' AND field_errors.email %]
- <p class='error'>[% field_errors.email %]</p>
- [% END %]
+ [% INCLUDE 'errors.html' errors = field_errors.values %]
<ul class="no-bullets">
<li>
<div class="admin-hint">
diff --git a/templates/web/base/admin/user_edit.html b/templates/web/base/admin/user_edit.html
index d69c873a3..5bfdf341f 100644
--- a/templates/web/base/admin/user_edit.html
+++ b/templates/web/base/admin/user_edit.html
@@ -1,4 +1,9 @@
-[% INCLUDE 'admin/header.html' title=tprintf(loc('Editing user %d'), user.id ) -%]
+[% IF user.id ~%]
+ [% title = tprintf(loc('Editing user %d'), user.id ) ~%]
+[% ELSE ~%]
+ [% title = loc('Add user') ~%]
+[% END ~%]
+[% INCLUDE 'admin/header.html' title=title -%]
[% PROCESS 'admin/report_blocks.html' %]
[% status_message %]