From b66a61addb6c8e66cb26fcf74b532d68891267e4 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 23 May 2018 22:23:28 +0200 Subject: Refactored code, many fixes and improvements in chat backend+frontend --- .../admin/templates/forms/group.html.twig | 81 +++++---- .../sprinkles/admin/templates/forms/role.html.twig | 65 ++++---- .../sprinkles/admin/templates/forms/user.html.twig | 181 +++++++++++---------- 3 files changed, 182 insertions(+), 145 deletions(-) (limited to 'main/app/sprinkles/admin/templates/forms') diff --git a/main/app/sprinkles/admin/templates/forms/group.html.twig b/main/app/sprinkles/admin/templates/forms/group.html.twig index 36d6632..fade5ab 100644 --- a/main/app/sprinkles/admin/templates/forms/group.html.twig +++ b/main/app/sprinkles/admin/templates/forms/group.html.twig @@ -1,69 +1,80 @@ -
+ {% include "forms/csrf.html.twig" %}
{% block group_form %} {% if 'name' not in form.fields.hidden %} -
-
- -
- - +
+
+ +
+ + +
-
{% endif %} {% if 'slug' not in form.fields.hidden %} -
-
- -
- - - {% if 'slug' not in form.fields.disabled %} - +
+
+ +
+ + + {% if 'slug' not in form.fields.disabled %} + - {% endif %} + {% endif %} +
-
{% endif %} {% if 'icon' not in fields.hidden %} -
-
- -
- - +
+
+ +
+ + +
-
{% endif %} {% if 'description' not in fields.hidden %} -
-
- - +
+
+ + +
-
{% endif %} {% endblock %} -

+
+
- +
- +
diff --git a/main/app/sprinkles/admin/templates/forms/role.html.twig b/main/app/sprinkles/admin/templates/forms/role.html.twig index 46a4477..7759783 100644 --- a/main/app/sprinkles/admin/templates/forms/role.html.twig +++ b/main/app/sprinkles/admin/templates/forms/role.html.twig @@ -1,56 +1,65 @@ -
+ {% include "forms/csrf.html.twig" %}
{% if 'name' not in form.fields.hidden %} -
-
- -
- - +
+
+ +
+ + +
-
{% endif %} {% if 'slug' not in form.fields.hidden %} -
-
- -
- - - {% if 'slug' not in form.fields.disabled %} - +
+
+ +
+ + + {% if 'slug' not in form.fields.disabled %} + - {% endif %} + {% endif %} +
-
{% endif %} {% if 'description' not in fields.hidden %} -
-
- - +
+
+ + +
-
{% endif %} -

+
+
- +
- +
diff --git a/main/app/sprinkles/admin/templates/forms/user.html.twig b/main/app/sprinkles/admin/templates/forms/user.html.twig index 3ee7fc9..e42cc6d 100644 --- a/main/app/sprinkles/admin/templates/forms/user.html.twig +++ b/main/app/sprinkles/admin/templates/forms/user.html.twig @@ -1,125 +1,142 @@ -
+ {% include "forms/csrf.html.twig" %}
{% block user_form %} {% if 'user_name' not in form.fields.hidden %} -
-
- -
- - +
+
+ +
+ + +
-
{% endif %} {% if 'group' not in form.fields.hidden %} -
-
- -
- - {% if 'group' in form.fields.disabled %} - - {% else %} - - {% endif %} +
+
+ +
+ + {% if 'group' in form.fields.disabled %} + + {% else %} + + {% endif %} +
-
{% endif %} {% if 'name' not in form.fields.hidden %} -
-
- -
- - +
+
+ +
+ + +
-
-
-
- -
- - +
+
+ +
+ + +
-
{% endif %} {% if 'email' not in form.fields.hidden %} -
-
- -
- - - {% if 'email' in form.fields.disabled %} - - +
+
+ +
+ + + {% if 'email' in form.fields.disabled %} + + - {% endif %} + {% endif %} +
-
{% endif %} {% if 'theme' not in form.fields.hidden %} -
-
- -
- - {% if 'theme' in form.fields.disabled %} - - {% else %} - - {% endif %} +
+
+ +
+ + {% if 'theme' in form.fields.disabled %} + + {% else %} + + {% endif %} +
-
{% endif %} {% if 'locale' not in form.fields.hidden %} -
-
- -
- - {% if 'locale' in form.fields.disabled %} - - {% else %} - - {% endif %} +
+
+ +
+ + {% if 'locale' in form.fields.disabled %} + + {% else %} + + {% endif %} +
-
{% endif %} {% endblock %} -

+
+
- +
- +
-- cgit v1.2.3