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 --- .../sprinkles/admin/templates/pages/user.html.twig | 141 +++++++++++---------- 1 file changed, 77 insertions(+), 64 deletions(-) (limited to 'main/app/sprinkles/admin/templates/pages/user.html.twig') diff --git a/main/app/sprinkles/admin/templates/pages/user.html.twig b/main/app/sprinkles/admin/templates/pages/user.html.twig index d9c9ab2..47228fd 100644 --- a/main/app/sprinkles/admin/templates/pages/user.html.twig +++ b/main/app/sprinkles/admin/templates/pages/user.html.twig @@ -6,7 +6,7 @@ {% endblock %} {# Overrides blocks in head of base template #} -{% block page_title %}{{ translate("USER", 2)}} | {{user.full_name}}{% endblock %} +{% block page_title %}{{ translate("USER", 2) }} | {{ user.full_name }}{% endblock %} {% block page_description %}{{ translate("USER.INFO_PAGE", {name: user.user_name}) }}{% endblock %} @@ -19,60 +19,69 @@ {% block user_box %}
-

{{translate('USER.SUMMARY')}}

+

{{ translate('USER.SUMMARY') }}

{% if 'tools' not in tools.hidden %}
-
- {{user.user_name}} + {{ user.user_name }} -

{{user.full_name}}

+

{{ user.full_name }}

{% if user.flag_enabled == 0 %} - + {% endif %} {% if user.flag_verified == 0 %} - + {% endif %}
-

{{user.user_name}}{% if 'group' not in fields.hidden %} • {{user.group.name}}{% endif %}

+

{{ user.user_name }}{% if 'group' not in fields.hidden %} • {{ user.group.name }}{% endif %}

{% if 'email' not in fields.hidden %}
- {{translate("EMAIL")}} + {{ translate("EMAIL") }}

- {{user.email}} + {{ user.email }}

{% endif %} {% if 'locale' not in fields.hidden %}
- {{translate("LOCALE")}} + {{ translate("LOCALE") }}

- {{locales[user.locale]}} + {{ locales[user.locale] }}

{% endif %} @@ -117,10 +129,12 @@ {% if 'roles' not in fields.hidden %}
- {{translate("ROLE", 2)}} + {{ translate("ROLE", 2) }} +

{% for role in user.roles %} - {{role.name}} + {{ role.name }} {% endfor %}

{% endif %} @@ -130,61 +144,60 @@
{% if 'activities' not in widgets.hidden %} -
- {% block activity_box %} -
-
-

{{translate('ACTIVITY', 2)}}

- {% include "tables/table-tool-menu.html.twig" %} -
-
- {% include "tables/activities.html.twig" with { +
+ {% block activity_box %} +
+
+

{{ translate('ACTIVITY', 2) }}

+ {% include "tables/table-tool-menu.html.twig" %} +
+
+ {% include "tables/activities.html.twig" with { "table" : { "id" : "table-user-activities" } - } - %} + } %} +
-
- {% endblock %} -
+ {% endblock %} +
{% endif %}
{% if 'permissions' not in widgets.hidden %} -
-
-
-
-

{{translate('PERMISSION', 2)}}

- {% include "tables/table-tool-menu.html.twig" %} -
-
- {% include "tables/permissions.html.twig" with { +
+
+
+
+

{{ translate('PERMISSION', 2) }} +

+ {% include "tables/table-tool-menu.html.twig" %} +
+
+ {% include "tables/permissions.html.twig" with { "table" : { "id" : "table-permissions", "columns" : ["via_roles"] } - } - %} + } %} +
-
{% endif %} {% endblock %} {% block scripts_page %} -- cgit v1.2.3