From 3c8bfc31e4ac53c64281e4b62ba66f96620ccdc1 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Fri, 23 Jul 2021 19:34:46 +0200 Subject: [PATCH] fix change name allowd as non admin --- cps/templates/user_edit.html | 58 ++++++++++++++++++------------------ cps/web.py | 15 +++++----- 2 files changed, 37 insertions(+), 36 deletions(-) diff --git a/cps/templates/user_edit.html b/cps/templates/user_edit.html index cc83a1b5..6fb30fc3 100644 --- a/cps/templates/user_edit.html +++ b/cps/templates/user_edit.html @@ -67,15 +67,14 @@ {% endif %}
- {% for element in sidebar %} - {% if element['config_show'] %} -
- - -
- {% endif %} - {% endfor %} - + {% for element in sidebar %} + {% if element['config_show'] %} +
+ + +
+ {% endif %} + {% endfor %}
@@ -84,6 +83,7 @@ {{_('Add Allowed/Denied Tags')}} {{_('Add allowed/Denied Custom Column Values')}} {% endif %} +
{% if g.user and g.user.role_admin() and not profile %} @@ -131,32 +131,32 @@
{% endif %} -
-
{{_('Save')}}
- {% if not profile %} -
{{_('Cancel')}}
- {% endif %} - {% if g.user and g.user.role_admin() and not profile and not new_user and not content.role_anonymous() %} -
{{_('Delete User')}}
- {% endif %} +
+
{{_('Save')}}
+ {% if not profile %} +
{{_('Cancel')}}
+ {% endif %} + {% if g.user and g.user.role_admin() and not profile and not new_user and not content.role_anonymous() %} +
{{_('Delete User')}}
+ {% endif %}
-