From a6104587203f1b1b448e6977066d6e649de91ae8 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sun, 6 May 2012 01:33:10 +1000 Subject: a lot more improvements --- templates/mod/user.html | 64 ++++++++++++++++++++++++++++++++++++------------- 1 file changed, 48 insertions(+), 16 deletions(-) (limited to 'templates/mod/user.html') diff --git a/templates/mod/user.html b/templates/mod/user.html index 87a57d92..3c4b89cf 100644 --- a/templates/mod/user.html +++ b/templates/mod/user.html @@ -1,9 +1,15 @@ -
+{% if new %} + {% set action = '?/users/new' %} +{% else %} + {% set action = '?/users/' ~ user.id %} +{% endif %} + + - + - + + {% if new %} + + + + + {% endif %} - +
Username{% trans 'Username' %} - {% if mod|hasPermission(config.mod.editusers) %} + {% if new or mod|hasPermission(config.mod.editusers) %} {% else %} {{ user.username|e }} @@ -11,17 +17,38 @@
Password (new; optional){% trans 'Password' %}{% if not new %} ({% trans 'new; optional' %}){% endif %} - {% if mod|hasPermission(config.mod.editusers) or (mod|hasPermission(config.mod.change_password) and user.id == mod.id) %} + {% if new or (mod|hasPermission(config.mod.editusers) or (mod|hasPermission(config.mod.change_password) and user.id == mod.id)) %} {% else %} - {% endif %}
{% trans 'Class' %} +
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
Boards{% trans 'Boards' %}
  • @@ -31,7 +58,7 @@ disabled {% endif %} > - +
  • {% for board in boards %}
  • @@ -44,7 +71,7 @@
  • {% endfor %} @@ -53,10 +80,14 @@
-