diff --git a/views/user_permissions.html b/views/user_permissions.html index 98f0df9..23e4f8a 100644 --- a/views/user_permissions.html +++ b/views/user_permissions.html @@ -25,51 +25,57 @@ {% endif %} -
+ {% if Sections %} + - {% for Section in Sections %} -
-
- {{ Section.Name }} -
-
-
- - - - + + {% for Role in Roles %} + - {% endfor %} - + {% for UserRole in UserRoles %} + {% if Section.ID == UserRole.SectionID and Role.ID == UserRole.RoleID %} + selected + {% endif %} + {% endfor %} + > + {{ Role.Name }} + + {% endfor %} + +
- - {% endfor %} + {% endfor %} +
+ +
+
+ {% else %}
- + Pas de section pour le moment
- + {% endif %} {% endblock %}