From 92b7dd3335a6572debeacfb5faa82c63a5e67888 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 8 Jun 2018 20:03:25 +0200 Subject: Some minor fixes --- .../admin/templates/forms/group.html.twig | 160 +++--- .../sprinkles/admin/templates/forms/role.html.twig | 130 ++--- .../sprinkles/admin/templates/forms/user.html.twig | 284 +++++------ .../admin/templates/mail/password-create.html.twig | 44 +- .../templates/modals/confirm-clear-cache.html.twig | 42 +- .../modals/confirm-delete-group.html.twig | 40 +- .../templates/modals/confirm-delete-role.html.twig | 40 +- .../templates/modals/confirm-delete-user.html.twig | 40 +- .../admin/templates/modals/group.html.twig | 14 +- .../modals/role-manage-permissions.html.twig | 192 +++---- .../admin/templates/modals/role.html.twig | 14 +- .../templates/modals/user-manage-roles.html.twig | 156 +++--- .../templates/modals/user-set-password.html.twig | 134 ++--- .../admin/templates/modals/user.html.twig | 14 +- .../templates/navigation/sidebar-menu.html.twig | 104 ++-- .../templates/navigation/sidebar-user.html.twig | 18 +- .../admin/templates/navigation/sidebar.html.twig | 18 +- .../admin/templates/navigation/user-card.html.twig | 16 +- .../templates/pages/abstract/dashboard.html.twig | 178 +++---- .../admin/templates/pages/activities.html.twig | 90 ++-- .../admin/templates/pages/dashboard.html.twig | 566 ++++++++++----------- .../admin/templates/pages/group.html.twig | 214 ++++---- .../admin/templates/pages/groups.html.twig | 102 ++-- .../admin/templates/pages/permission.html.twig | 182 +++---- .../admin/templates/pages/permissions.html.twig | 90 ++-- .../sprinkles/admin/templates/pages/role.html.twig | 258 +++++----- .../admin/templates/pages/roles.html.twig | 98 ++-- .../sprinkles/admin/templates/pages/user.html.twig | 416 +++++++-------- .../admin/templates/pages/users.html.twig | 104 ++-- .../admin/templates/tables/activities.html.twig | 160 +++--- .../admin/templates/tables/groups.html.twig | 148 +++--- .../admin/templates/tables/permissions.html.twig | 142 +++--- .../admin/templates/tables/roles.html.twig | 158 +++--- .../admin/templates/tables/users.html.twig | 314 ++++++------ 34 files changed, 2340 insertions(+), 2340 deletions(-) (limited to 'main/app/sprinkles/admin/templates') diff --git a/main/app/sprinkles/admin/templates/forms/group.html.twig b/main/app/sprinkles/admin/templates/forms/group.html.twig index fade5ab..18d0bb5 100644 --- a/main/app/sprinkles/admin/templates/forms/group.html.twig +++ b/main/app/sprinkles/admin/templates/forms/group.html.twig @@ -1,80 +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 %} - - - - {% endif %} -
-
-
- {% endif %} - {% if 'icon' not in fields.hidden %} -
-
- -
- - -
-
-
- {% endif %} - {% if 'description' not in fields.hidden %} -
-
- - -
-
- {% endif %} - {% endblock %} -
-
-
-
- -
-
- -
-
-
- - +
+ {% 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 %} + + + + {% 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 7759783..f68dcd8 100644 --- a/main/app/sprinkles/admin/templates/forms/role.html.twig +++ b/main/app/sprinkles/admin/templates/forms/role.html.twig @@ -1,65 +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 %} - - - - {% endif %} -
-
-
- {% endif %} - {% if 'description' not in fields.hidden %} -
-
- - -
-
- {% endif %} -
-
-
-
- -
-
- -
-
-
- - +
+ {% 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 %} + + + + {% 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 e42cc6d..32228f0 100644 --- a/main/app/sprinkles/admin/templates/forms/user.html.twig +++ b/main/app/sprinkles/admin/templates/forms/user.html.twig @@ -1,142 +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 %} -
-
-
- {% endif %} - {% if 'name' not in form.fields.hidden %} -
-
- -
- - -
-
-
-
-
- -
- - -
-
-
- {% endif %} - {% if 'email' not in form.fields.hidden %} -
-
- -
- - - {% if 'email' in form.fields.disabled %} - - - - {% endif %} -
-
-
- {% endif %} - {% if 'theme' not in form.fields.hidden %} -
-
- -
- - {% if 'theme' in form.fields.disabled %} - - {% else %} - - {% endif %} -
-
-
- {% endif %} - {% if 'locale' not in form.fields.hidden %} -
-
- -
- - {% if 'locale' in form.fields.disabled %} - - {% else %} - - {% endif %} -
-
-
- {% endif %} - {% endblock %} -
-
-
-
- -
-
- -
-
-
- - +
+ {% 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 %} +
+
+
+ {% endif %} + {% if 'name' not in form.fields.hidden %} +
+
+ +
+ + +
+
+
+
+
+ +
+ + +
+
+
+ {% endif %} + {% if 'email' not in form.fields.hidden %} +
+
+ +
+ + + {% if 'email' in form.fields.disabled %} + + + + {% endif %} +
+
+
+ {% endif %} + {% if 'theme' not in form.fields.hidden %} +
+
+ +
+ + {% if 'theme' in form.fields.disabled %} + + {% else %} + + {% endif %} +
+
+
+ {% endif %} + {% if 'locale' not in form.fields.hidden %} +
+
+ +
+ + {% if 'locale' in form.fields.disabled %} + + {% else %} + + {% endif %} +
+
+
+ {% endif %} + {% endblock %} +
+
+
+
+ +
+
+ +
+
+
+ + diff --git a/main/app/sprinkles/admin/templates/mail/password-create.html.twig b/main/app/sprinkles/admin/templates/mail/password-create.html.twig index f3a36d8..3a25c4f 100644 --- a/main/app/sprinkles/admin/templates/mail/password-create.html.twig +++ b/main/app/sprinkles/admin/templates/mail/password-create.html.twig @@ -1,23 +1,23 @@ -{% block subject %} - {{ site.title }} - please set a password for your new account -{% endblock %} - -{% block body %} -

- Dear {{ user.first_name }}, -

-

- Someone has created an account for you with {{ site.title }} ({{ site.uri.public }}). Your username is - {{ user.user_name }}. -

-

- To access your account, you must first create a password by visiting: {{ site.uri.public }} - /account/set-password/confirm?token={{ token }}. This link has been generated especially for you, and - will expire in {{ create_password_expiration }}. Do not share it with anyone! -

-

- With regards,
- The {{ site.title }} Team -

+{% block subject %} + {{ site.title }} - please set a password for your new account +{% endblock %} + +{% block body %} +

+ Dear {{ user.first_name }}, +

+

+ Someone has created an account for you with {{ site.title }} ({{ site.uri.public }}). Your username is + {{ user.user_name }}. +

+

+ To access your account, you must first create a password by visiting: {{ site.uri.public }} + /account/set-password/confirm?token={{ token }}. This link has been generated especially for you, and + will expire in {{ create_password_expiration }}. Do not share it with anyone! +

+

+ With regards,
+ The {{ site.title }} Team +

{% endblock %} \ No newline at end of file diff --git a/main/app/sprinkles/admin/templates/modals/confirm-clear-cache.html.twig b/main/app/sprinkles/admin/templates/modals/confirm-clear-cache.html.twig index bf3ccca..4da4508 100644 --- a/main/app/sprinkles/admin/templates/modals/confirm-clear-cache.html.twig +++ b/main/app/sprinkles/admin/templates/modals/confirm-clear-cache.html.twig @@ -1,21 +1,21 @@ -{% extends "modals/modal.html.twig" %} - -{% block modal_title %}{{ translate("CACHE.CLEAR") }}{% endblock %} - -{% block modal_body %} -
- {% include "forms/csrf.html.twig" %} -
-
-

{{ translate("CACHE.CLEAR_CONFIRM") }}
- {{ translate("DELETE_CANNOT_UNDONE") }} -

-
-
- - -
-
-{% endblock %} +{% extends "modals/modal.html.twig" %} + +{% block modal_title %}{{ translate("CACHE.CLEAR") }}{% endblock %} + +{% block modal_body %} +
+ {% include "forms/csrf.html.twig" %} +
+
+

{{ translate("CACHE.CLEAR_CONFIRM") }}
+ {{ translate("DELETE_CANNOT_UNDONE") }} +

+
+
+ + +
+
+{% endblock %} diff --git a/main/app/sprinkles/admin/templates/modals/confirm-delete-group.html.twig b/main/app/sprinkles/admin/templates/modals/confirm-delete-group.html.twig index e53bf6e..6be951c 100644 --- a/main/app/sprinkles/admin/templates/modals/confirm-delete-group.html.twig +++ b/main/app/sprinkles/admin/templates/modals/confirm-delete-group.html.twig @@ -1,20 +1,20 @@ -{% extends "modals/modal.html.twig" %} - -{% block modal_title %}{{ translate("GROUP.DELETE") }}{% endblock %} - -{% block modal_body %} -
- {% include "forms/csrf.html.twig" %} -
-
-

{{ translate("GROUP.DELETE_CONFIRM", {name: group.name}) }}
- {{ translate("DELETE_CANNOT_UNDONE") }} -

-
-
- - -
-
-{% endblock %} +{% extends "modals/modal.html.twig" %} + +{% block modal_title %}{{ translate("GROUP.DELETE") }}{% endblock %} + +{% block modal_body %} +
+ {% include "forms/csrf.html.twig" %} +
+
+

{{ translate("GROUP.DELETE_CONFIRM", {name: group.name}) }}
+ {{ translate("DELETE_CANNOT_UNDONE") }} +

+
+
+ + +
+
+{% endblock %} diff --git a/main/app/sprinkles/admin/templates/modals/confirm-delete-role.html.twig b/main/app/sprinkles/admin/templates/modals/confirm-delete-role.html.twig index ae528f9..0da0910 100644 --- a/main/app/sprinkles/admin/templates/modals/confirm-delete-role.html.twig +++ b/main/app/sprinkles/admin/templates/modals/confirm-delete-role.html.twig @@ -1,20 +1,20 @@ -{% extends "modals/modal.html.twig" %} - -{% block modal_title %}{{ translate("ROLE.DELETE") }}{% endblock %} - -{% block modal_body %} -
- {% include "forms/csrf.html.twig" %} -
-
-

{{ translate("ROLE.DELETE_CONFIRM", {name: role.name}) }}
- {{ translate("DELETE_CANNOT_UNDONE") }} -

-
-
- - -
-
-{% endblock %} +{% extends "modals/modal.html.twig" %} + +{% block modal_title %}{{ translate("ROLE.DELETE") }}{% endblock %} + +{% block modal_body %} +
+ {% include "forms/csrf.html.twig" %} +
+
+

{{ translate("ROLE.DELETE_CONFIRM", {name: role.name}) }}
+ {{ translate("DELETE_CANNOT_UNDONE") }} +

+
+
+ + +
+
+{% endblock %} diff --git a/main/app/sprinkles/admin/templates/modals/confirm-delete-user.html.twig b/main/app/sprinkles/admin/templates/modals/confirm-delete-user.html.twig index 17fe859..7dd18ad 100644 --- a/main/app/sprinkles/admin/templates/modals/confirm-delete-user.html.twig +++ b/main/app/sprinkles/admin/templates/modals/confirm-delete-user.html.twig @@ -1,20 +1,20 @@ -{% extends "modals/modal.html.twig" %} - -{% block modal_title %}{{ translate("USER.DELETE") }}{% endblock %} - -{% block modal_body %} -
- {% include "forms/csrf.html.twig" %} -
-
-

{{ translate("USER.DELETE_CONFIRM", {name: user.user_name}) }}
- {{ translate("DELETE_CANNOT_UNDONE") }} -

-
-
- - -
-
-{% endblock %} +{% extends "modals/modal.html.twig" %} + +{% block modal_title %}{{ translate("USER.DELETE") }}{% endblock %} + +{% block modal_body %} +
+ {% include "forms/csrf.html.twig" %} +
+
+

{{ translate("USER.DELETE_CONFIRM", {name: user.user_name}) }}
+ {{ translate("DELETE_CANNOT_UNDONE") }} +

+
+
+ + +
+
+{% endblock %} diff --git a/main/app/sprinkles/admin/templates/modals/group.html.twig b/main/app/sprinkles/admin/templates/modals/group.html.twig index a716b4f..0c55bc3 100644 --- a/main/app/sprinkles/admin/templates/modals/group.html.twig +++ b/main/app/sprinkles/admin/templates/modals/group.html.twig @@ -1,7 +1,7 @@ -{% extends "modals/modal.html.twig" %} - -{% block modal_title %}{{ translate('GROUP') }}{% endblock %} - -{% block modal_body %} - {% include "forms/group.html.twig" %} -{% endblock %} +{% extends "modals/modal.html.twig" %} + +{% block modal_title %}{{ translate('GROUP') }}{% endblock %} + +{% block modal_body %} + {% include "forms/group.html.twig" %} +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/modals/role-manage-permissions.html.twig b/main/app/sprinkles/admin/templates/modals/role-manage-permissions.html.twig index f8b7ef5..8189aaa 100644 --- a/main/app/sprinkles/admin/templates/modals/role-manage-permissions.html.twig +++ b/main/app/sprinkles/admin/templates/modals/role-manage-permissions.html.twig @@ -1,96 +1,96 @@ -{% extends "modals/modal.html.twig" %} - -{% block modal_title %}{{ translate("PERMISSION.MANAGE") }}{% endblock %} - -{% block modal_size %}modal-lg{% endblock %} - -{% block modal_body %} -
- {% include "forms/csrf.html.twig" %} -
-
-
- - - - - - - - - - - -
{{ translate("NAME") }}{{ translate("DESCRIPTION") }}{{ translate("PERMISSION.HOOK_CONDITION") }}{{ translate("REMOVE") }}
-
- - -
-
-
-
-
- -
-
- -
-
-
- - {# This contains a series of - - -{% endverbatim %} - - - -{% endblock %} +{% extends "modals/modal.html.twig" %} + +{% block modal_title %}{{ translate("PERMISSION.MANAGE") }}{% endblock %} + +{% block modal_size %}modal-lg{% endblock %} + +{% block modal_body %} +
+ {% include "forms/csrf.html.twig" %} +
+
+
+ + + + + + + + + + + +
{{ translate("NAME") }}{{ translate("DESCRIPTION") }}{{ translate("PERMISSION.HOOK_CONDITION") }}{{ translate("REMOVE") }}
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+ + {# This contains a series of + + +{% endverbatim %} + + + +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/modals/role.html.twig b/main/app/sprinkles/admin/templates/modals/role.html.twig index 6ae924e..b0c6c93 100644 --- a/main/app/sprinkles/admin/templates/modals/role.html.twig +++ b/main/app/sprinkles/admin/templates/modals/role.html.twig @@ -1,7 +1,7 @@ -{% extends "modals/modal.html.twig" %} - -{% block modal_title %}{{ translate('ROLE') }}{% endblock %} - -{% block modal_body %} - {% include "forms/role.html.twig" %} -{% endblock %} +{% extends "modals/modal.html.twig" %} + +{% block modal_title %}{{ translate('ROLE') }}{% endblock %} + +{% block modal_body %} + {% include "forms/role.html.twig" %} +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/modals/user-manage-roles.html.twig b/main/app/sprinkles/admin/templates/modals/user-manage-roles.html.twig index 3c0fe18..e3c4811 100644 --- a/main/app/sprinkles/admin/templates/modals/user-manage-roles.html.twig +++ b/main/app/sprinkles/admin/templates/modals/user-manage-roles.html.twig @@ -1,78 +1,78 @@ -{% extends "modals/modal.html.twig" %} - -{% block modal_title %}{{ translate("ROLE.MANAGE") }}{% endblock %} - -{% block modal_body %} -
- {% include "forms/csrf.html.twig" %} -
-
-
- - - - - - - - - - -
{{ translate("NAME") }}{{ translate("DESCRIPTION") }}{{ translate("REMOVE") }}
-
- - -
-
-
-
-
- -
-
- -
-
-
- - {# This contains a series of - - -{% endverbatim %} - - - -{% endblock %} +{% extends "modals/modal.html.twig" %} + +{% block modal_title %}{{ translate("ROLE.MANAGE") }}{% endblock %} + +{% block modal_body %} +
+ {% include "forms/csrf.html.twig" %} +
+
+
+ + + + + + + + + + +
{{ translate("NAME") }}{{ translate("DESCRIPTION") }}{{ translate("REMOVE") }}
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+ + {# This contains a series of + + +{% endverbatim %} + + + +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/modals/user-set-password.html.twig b/main/app/sprinkles/admin/templates/modals/user-set-password.html.twig index 9b2c017..efd2d6b 100644 --- a/main/app/sprinkles/admin/templates/modals/user-set-password.html.twig +++ b/main/app/sprinkles/admin/templates/modals/user-set-password.html.twig @@ -1,67 +1,67 @@ -{% extends "modals/modal.html.twig" %} - -{% block modal_title %}{{ translate("USER.ADMIN.CHANGE_PASSWORD") }}{% endblock %} - -{% block modal_body %} -
- {% include "forms/csrf.html.twig" %} - - - -
-
-
-
-
- -
-
-
-
- -
-
-
-
- -
- - -
-
-
- -
- - -
-
-
-
-
-
-
-
-
- -
-
- -
-
-
- - -{% endblock %} +{% extends "modals/modal.html.twig" %} + +{% block modal_title %}{{ translate("USER.ADMIN.CHANGE_PASSWORD") }}{% endblock %} + +{% block modal_body %} +
+ {% include "forms/csrf.html.twig" %} + + + +
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+ + +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/modals/user.html.twig b/main/app/sprinkles/admin/templates/modals/user.html.twig index 850844d..b1bf6fc 100644 --- a/main/app/sprinkles/admin/templates/modals/user.html.twig +++ b/main/app/sprinkles/admin/templates/modals/user.html.twig @@ -1,7 +1,7 @@ -{% extends "modals/modal.html.twig" %} - -{% block modal_title %}{{ translate('USER') }}{% endblock %} - -{% block modal_body %} - {% include "forms/user.html.twig" %} -{% endblock %} +{% extends "modals/modal.html.twig" %} + +{% block modal_title %}{{ translate('USER') }}{% endblock %} + +{% block modal_body %} + {% include "forms/user.html.twig" %} +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/navigation/sidebar-menu.html.twig b/main/app/sprinkles/admin/templates/navigation/sidebar-menu.html.twig index 446f260..b2965e0 100644 --- a/main/app/sprinkles/admin/templates/navigation/sidebar-menu.html.twig +++ b/main/app/sprinkles/admin/templates/navigation/sidebar-menu.html.twig @@ -1,53 +1,53 @@ -{% block navigation %} - {% if checkAccess('uri_dashboard') %} -
  • - - {{ translate("DASHBOARD") }} - -
  • - {% endif %} - {% if checkAccess('uri_users') %} -
  • - - {{ translate("USER", 2) }} - -
  • - {% elseif checkAccess('uri_group', { - 'group': current_user.group - }) %} -
  • - - {{ translate("GROUP.MANAGE") }} - -
  • - {% endif %} - {% if checkAccess('uri_activities') %} -
  • - - {{ translate("ACTIVITY", 2) }} - -
  • - {% endif %} - {% if checkAccess('uri_roles') %} -
  • - - {{ translate("ROLE", 2) }} - -
  • - {% endif %} - {% if checkAccess('uri_permissions') %} -
  • - - {{ translate("PERMISSION", 2) }} - -
  • - {% endif %} - {% if checkAccess('uri_groups') %} -
  • - - {{ translate("GROUP", 2) }} - -
  • - {% endif %} +{% block navigation %} + {% if checkAccess('uri_dashboard') %} +
  • + + {{ translate("DASHBOARD") }} + +
  • + {% endif %} + {% if checkAccess('uri_users') %} +
  • + + {{ translate("USER", 2) }} + +
  • + {% elseif checkAccess('uri_group', { + 'group': current_user.group + }) %} +
  • + + {{ translate("GROUP.MANAGE") }} + +
  • + {% endif %} + {% if checkAccess('uri_activities') %} +
  • + + {{ translate("ACTIVITY", 2) }} + +
  • + {% endif %} + {% if checkAccess('uri_roles') %} +
  • + + {{ translate("ROLE", 2) }} + +
  • + {% endif %} + {% if checkAccess('uri_permissions') %} +
  • + + {{ translate("PERMISSION", 2) }} + +
  • + {% endif %} + {% if checkAccess('uri_groups') %} +
  • + + {{ translate("GROUP", 2) }} + +
  • + {% endif %} {% endblock %} \ No newline at end of file diff --git a/main/app/sprinkles/admin/templates/navigation/sidebar-user.html.twig b/main/app/sprinkles/admin/templates/navigation/sidebar-user.html.twig index 4b1881c..541fe99 100644 --- a/main/app/sprinkles/admin/templates/navigation/sidebar-user.html.twig +++ b/main/app/sprinkles/admin/templates/navigation/sidebar-user.html.twig @@ -1,10 +1,10 @@ - -
    -
    - User Image -
    -
    -

    {{ current_user.first_name }} {{ current_user.last_name }}

    - {{ current_user.group.name }} -
    + +
    +
    + User Image +
    +
    +

    {{ current_user.first_name }} {{ current_user.last_name }}

    + {{ current_user.group.name }} +
    \ No newline at end of file diff --git a/main/app/sprinkles/admin/templates/navigation/sidebar.html.twig b/main/app/sprinkles/admin/templates/navigation/sidebar.html.twig index 59f87b0..f5465a0 100644 --- a/main/app/sprinkles/admin/templates/navigation/sidebar.html.twig +++ b/main/app/sprinkles/admin/templates/navigation/sidebar.html.twig @@ -1,10 +1,10 @@ -{% block sidebar_user %} - {% include 'navigation/sidebar-user.html.twig' %} -{% endblock %} - -{% block sidebar_menu %} - +{% block sidebar_user %} + {% include 'navigation/sidebar-user.html.twig' %} +{% endblock %} + +{% block sidebar_menu %} + {% endblock %} \ No newline at end of file diff --git a/main/app/sprinkles/admin/templates/navigation/user-card.html.twig b/main/app/sprinkles/admin/templates/navigation/user-card.html.twig index 8b40cd3..a844ce1 100644 --- a/main/app/sprinkles/admin/templates/navigation/user-card.html.twig +++ b/main/app/sprinkles/admin/templates/navigation/user-card.html.twig @@ -1,9 +1,9 @@ -{% extends "@account/navigation/user-card.html.twig" %} - -{% block userCard_menu %} - {% if checkAccess('uri_dashboard') %} - {{ translate("DASHBOARD") }} - {% endif %} - {{ parent() }} +{% extends "@account/navigation/user-card.html.twig" %} + +{% block userCard_menu %} + {% if checkAccess('uri_dashboard') %} + {{ translate("DASHBOARD") }} + {% endif %} + {{ parent() }} {% endblock %} \ No newline at end of file diff --git a/main/app/sprinkles/admin/templates/pages/abstract/dashboard.html.twig b/main/app/sprinkles/admin/templates/pages/abstract/dashboard.html.twig index 0d2e0ef..b24c621 100644 --- a/main/app/sprinkles/admin/templates/pages/abstract/dashboard.html.twig +++ b/main/app/sprinkles/admin/templates/pages/abstract/dashboard.html.twig @@ -1,90 +1,90 @@ -{% extends "pages/abstract/base.html.twig" %} - -{% block stylesheets_page_group %} - - {{ assets.css('css/admin') | raw }} -{% endblock %} - -{% block body_attributes %} - {% if current_user.isMaster() %} - class="hold-transition skin-red sidebar-mini" - {% else %} - class="hold-transition skin-{{ site.AdminLTE.skin }} sidebar-mini" - {% endif %} -{% endblock %} - -{% block content %} - {# This needs to be here (early in the body) to make sure the animation doesn't fire #} - - -
    - -
    - - {% block navbar_logo %} - - {% endblock %} - - -
    - - - - -
    - - {% block content_header %} -
    -

    {% block header_title %}{{ block('page_title') }}{% endblock %}

    - {% if block('page_description') is not empty %} -

    - {% block header_description %}{{ block('page_description') }}{% endblock %} -

    {% endif %} - {% block breadcrumb %} - {% include 'navigation/breadcrumb.html.twig' with {page_title: block('page_title')} %} - {% endblock %} -
    -
    - {% endblock %} -
    - {% block body_matter %}{% endblock %} -
    -
    - - - - {% block footer %} - {% include "pages/partials/footer.html.twig" %} - {% endblock %} - -
    - - -{% endblock %} - -{% block scripts_page_group %} - {{ assets.js('js/admin') | raw }} +{% extends "pages/abstract/base.html.twig" %} + +{% block stylesheets_page_group %} + + {{ assets.css('css/admin') | raw }} +{% endblock %} + +{% block body_attributes %} + {% if current_user.isMaster() %} + class="hold-transition skin-red sidebar-mini" + {% else %} + class="hold-transition skin-{{ site.AdminLTE.skin }} sidebar-mini" + {% endif %} +{% endblock %} + +{% block content %} + {# This needs to be here (early in the body) to make sure the animation doesn't fire #} + + +
    + +
    + + {% block navbar_logo %} + + {% endblock %} + + +
    + + + + +
    + + {% block content_header %} +
    +

    {% block header_title %}{{ block('page_title') }}{% endblock %}

    + {% if block('page_description') is not empty %} +

    + {% block header_description %}{{ block('page_description') }}{% endblock %} +

    {% endif %} + {% block breadcrumb %} + {% include 'navigation/breadcrumb.html.twig' with {page_title: block('page_title')} %} + {% endblock %} +
    +
    + {% endblock %} +
    + {% block body_matter %}{% endblock %} +
    +
    + + + + {% block footer %} + {% include "pages/partials/footer.html.twig" %} + {% endblock %} + +
    + + +{% endblock %} + +{% block scripts_page_group %} + {{ assets.js('js/admin') | raw }} {% endblock %} \ No newline at end of file diff --git a/main/app/sprinkles/admin/templates/pages/activities.html.twig b/main/app/sprinkles/admin/templates/pages/activities.html.twig index 7927601..c6bd007 100644 --- a/main/app/sprinkles/admin/templates/pages/activities.html.twig +++ b/main/app/sprinkles/admin/templates/pages/activities.html.twig @@ -1,45 +1,45 @@ -{% extends "pages/abstract/dashboard.html.twig" %} - -{% block stylesheets_page %} - - {{ assets.css('css/form-widgets') | raw }} -{% endblock %} - -{# Overrides blocks in head of base template #} -{% block page_title %}{{ translate("ACTIVITY", 2) }}{% endblock %} - -{% block page_description %}{{ translate("ACTIVITY.PAGE") }}.{% endblock %} - -{% block body_matter %} -
    -
    -
    -
    -

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

    - {% include "tables/table-tool-menu.html.twig" %} -
    -
    - {% include "tables/activities.html.twig" with { - "table" : { - "id" : "table-activities", - "columns" : ["user"] - } - } %} -
    -
    -
    -
    -{% endblock %} -{% block scripts_page %} - - - - - {{ assets.js('js/form-widgets') | raw }} - - - {{ assets.js('js/pages/activities') | raw }} - -{% endblock %} +{% extends "pages/abstract/dashboard.html.twig" %} + +{% block stylesheets_page %} + + {{ assets.css('css/form-widgets') | raw }} +{% endblock %} + +{# Overrides blocks in head of base template #} +{% block page_title %}{{ translate("ACTIVITY", 2) }}{% endblock %} + +{% block page_description %}{{ translate("ACTIVITY.PAGE") }}.{% endblock %} + +{% block body_matter %} +
    +
    +
    +
    +

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

    + {% include "tables/table-tool-menu.html.twig" %} +
    +
    + {% include "tables/activities.html.twig" with { + "table" : { + "id" : "table-activities", + "columns" : ["user"] + } + } %} +
    +
    +
    +
    +{% endblock %} +{% block scripts_page %} + + + + + {{ assets.js('js/form-widgets') | raw }} + + + {{ assets.js('js/pages/activities') | raw }} + +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/pages/dashboard.html.twig b/main/app/sprinkles/admin/templates/pages/dashboard.html.twig index 461e13d..30ef280 100644 --- a/main/app/sprinkles/admin/templates/pages/dashboard.html.twig +++ b/main/app/sprinkles/admin/templates/pages/dashboard.html.twig @@ -1,284 +1,284 @@ -{% extends "pages/abstract/dashboard.html.twig" %} - -{# Overrides blocks in head of base template #} -{% block page_title %}{{ translate("DASHBOARD") }}{% endblock %} -{% block page_description %}{% endblock %} - -{% block body_matter %} - - {% if checkAccess('uri_users') %} -
    - - - - - - - - -
    - - - {% elseif checkAccess('uri_group', { - 'group': current_user.group - }) %} -
    -
    -
    - -
    -

    {{ current_user.group.name }}

    -
    - -
    - -
    - -
    -
    - -
    - {{ translate("USER", 2) }} - {{ current_user.group.users.count }} -
    - -
    - -
    - -
    - - {% endif %} - - -
    - {% if checkAccess('uri_users') or checkAccess('view_system_info') %} -
    - {% if checkAccess('uri_users') %} -
    -
    - -
    -
    -

    {{ translate("USER.LATEST") }}

    -
    - -
    - - -
    - - - -
    - -
    - -
    - - {% endif %} - - {% if checkAccess('view_system_info') %} -
    -
    -
    -
    -

    {{ translate("SYSTEM_INFO") }}

    -
    - -
    -
    -
    {{ translate("SYSTEM_INFO.UF_VERSION") }}
    -
    {{ info.version.UF }}
    - -
    {{ translate("SYSTEM_INFO.PHP_VERSION") }}
    -
    {{ info.version.php }}
    - -
    {{ translate("SYSTEM_INFO.SERVER") }}
    -
    {{ info.environment.SERVER_SOFTWARE }}
    - -
    {{ translate("SYSTEM_INFO.DB_VERSION") }}
    -
    {{ info.version.database.type }} {{ info.version.database.version }}
    - -
    {{ translate("SYSTEM_INFO.DB_NAME") }}
    -
    {{ info.database.name }}
    - -
    {{ translate("SYSTEM_INFO.DIRECTORY") }}
    -
    {{ info.path.project }}
    - -
    {{ translate("SYSTEM_INFO.URL") }}
    -
    {{ site.uri.public }}
    - -
    {{ translate("SYSTEM_INFO.SPRINKLES") }}
    -
    -
      - {% for sprinkle in sprinkles %} -
    • - {{ sprinkle }} -
    • - {% endfor %} -
    -
    -
    -
    - - - -
    - -
    - -
    - - {% endif %} -
    - - {% endif %} - - {% if checkAccess('uri_activities') %} -
    -
    -
    -

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

    - {% include "tables/table-tool-menu.html.twig" %} -
    -
    - {% include "tables/activities.html.twig" with { - "table" : { - "id" : "table-activities", - "columns" : ["user"] - } - } %} -
    -
    -
    - {% elseif checkAccess('view_group_field', { - 'group': current_user.group, - 'property': 'users' - }) %} -
    -
    -
    -

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

    - {% include "tables/table-tool-menu.html.twig" %} -
    -
    - {% include "tables/users.html.twig" with { - "table" : { - "id" : "table-group-users" - } - } %} -
    - -
    -
    - {% else %} -
    -
    - -
    -

    - {{ translate("WELCOME", { - 'first_name': current_user.first_name - }) }} -

    -
    -
    - User Avatar -
    - -
    - - - -
    - - {% endif %} -
    - -{% endblock %} - -{% block scripts_page %} - - - - - {{ assets.js('js/pages/dashboard') | raw }} - +{% extends "pages/abstract/dashboard.html.twig" %} + +{# Overrides blocks in head of base template #} +{% block page_title %}{{ translate("DASHBOARD") }}{% endblock %} +{% block page_description %}{% endblock %} + +{% block body_matter %} + + {% if checkAccess('uri_users') %} +
    + + + + + + + + +
    + + + {% elseif checkAccess('uri_group', { + 'group': current_user.group + }) %} +
    +
    +
    + +
    +

    {{ current_user.group.name }}

    +
    + +
    + +
    + +
    +
    + +
    + {{ translate("USER", 2) }} + {{ current_user.group.users.count }} +
    + +
    + +
    + +
    + + {% endif %} + + +
    + {% if checkAccess('uri_users') or checkAccess('view_system_info') %} +
    + {% if checkAccess('uri_users') %} +
    +
    + +
    +
    +

    {{ translate("USER.LATEST") }}

    +
    + +
    + + +
    + + + +
    + +
    + +
    + + {% endif %} + + {% if checkAccess('view_system_info') %} +
    +
    +
    +
    +

    {{ translate("SYSTEM_INFO") }}

    +
    + +
    +
    +
    {{ translate("SYSTEM_INFO.UF_VERSION") }}
    +
    {{ info.version.UF }}
    + +
    {{ translate("SYSTEM_INFO.PHP_VERSION") }}
    +
    {{ info.version.php }}
    + +
    {{ translate("SYSTEM_INFO.SERVER") }}
    +
    {{ info.environment.SERVER_SOFTWARE }}
    + +
    {{ translate("SYSTEM_INFO.DB_VERSION") }}
    +
    {{ info.version.database.type }} {{ info.version.database.version }}
    + +
    {{ translate("SYSTEM_INFO.DB_NAME") }}
    +
    {{ info.database.name }}
    + +
    {{ translate("SYSTEM_INFO.DIRECTORY") }}
    +
    {{ info.path.project }}
    + +
    {{ translate("SYSTEM_INFO.URL") }}
    +
    {{ site.uri.public }}
    + +
    {{ translate("SYSTEM_INFO.SPRINKLES") }}
    +
    +
      + {% for sprinkle in sprinkles %} +
    • + {{ sprinkle }} +
    • + {% endfor %} +
    +
    +
    +
    + + + +
    + +
    + +
    + + {% endif %} +
    + + {% endif %} + + {% if checkAccess('uri_activities') %} +
    +
    +
    +

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

    + {% include "tables/table-tool-menu.html.twig" %} +
    +
    + {% include "tables/activities.html.twig" with { + "table" : { + "id" : "table-activities", + "columns" : ["user"] + } + } %} +
    +
    +
    + {% elseif checkAccess('view_group_field', { + 'group': current_user.group, + 'property': 'users' + }) %} +
    +
    +
    +

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

    + {% include "tables/table-tool-menu.html.twig" %} +
    +
    + {% include "tables/users.html.twig" with { + "table" : { + "id" : "table-group-users" + } + } %} +
    + +
    +
    + {% else %} +
    +
    + +
    +

    + {{ translate("WELCOME", { + 'first_name': current_user.first_name + }) }} +

    +
    +
    + User Avatar +
    + +
    + + + +
    + + {% endif %} +
    + +{% endblock %} + +{% block scripts_page %} + + + + + {{ assets.js('js/pages/dashboard') | raw }} + {% endblock %} \ No newline at end of file diff --git a/main/app/sprinkles/admin/templates/pages/group.html.twig b/main/app/sprinkles/admin/templates/pages/group.html.twig index bab5b13..204f66e 100644 --- a/main/app/sprinkles/admin/templates/pages/group.html.twig +++ b/main/app/sprinkles/admin/templates/pages/group.html.twig @@ -1,107 +1,107 @@ -{% extends "pages/abstract/dashboard.html.twig" %} - -{% block stylesheets_page %} - - {{ assets.css('css/form-widgets') | raw }} -{% endblock %} - -{# Overrides blocks in head of base template #} -{% block page_title %}{{ translate("GROUP", 2) }} | {{ group.name }}{% endblock %} - -{% block page_description %}{{ translate("GROUP.INFO_PAGE", {name: group.name}) }}{% endblock %} - -{% block body_matter %} -
    -
    -
    -
    -

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

    - {% if 'tools' not in tools.hidden %} -
    -
    - - -
    -
    - {% endif %} -
    -
    -
    - -
    - -

    {{ group.name }}

    - - {% if 'description' not in fields.hidden %} -

    - {{ group.description }} -

    - {% endif %} - {% if 'users' not in fields.hidden %} -
    - {{ translate('USER', 2) }} -

    - {{ group.users.count }} -

    - {% endif %} - {% block group_profile %}{% endblock %} -
    -
    -
    -
    -
    -
    -

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

    - {% include "tables/table-tool-menu.html.twig" %} -
    -
    - {% include "tables/users.html.twig" with { - "table" : { - "id" : "table-group-users" - } - } %} -
    -
    -
    -
    -{% endblock %} -{% block scripts_page %} - - - - - {{ assets.js('js/form-widgets') | raw }} - - - {{ assets.js('js/pages/group') | raw }} -{% endblock %} +{% extends "pages/abstract/dashboard.html.twig" %} + +{% block stylesheets_page %} + + {{ assets.css('css/form-widgets') | raw }} +{% endblock %} + +{# Overrides blocks in head of base template #} +{% block page_title %}{{ translate("GROUP", 2) }} | {{ group.name }}{% endblock %} + +{% block page_description %}{{ translate("GROUP.INFO_PAGE", {name: group.name}) }}{% endblock %} + +{% block body_matter %} +
    +
    +
    +
    +

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

    + {% if 'tools' not in tools.hidden %} +
    +
    + + +
    +
    + {% endif %} +
    +
    +
    + +
    + +

    {{ group.name }}

    + + {% if 'description' not in fields.hidden %} +

    + {{ group.description }} +

    + {% endif %} + {% if 'users' not in fields.hidden %} +
    + {{ translate('USER', 2) }} +

    + {{ group.users.count }} +

    + {% endif %} + {% block group_profile %}{% endblock %} +
    +
    +
    +
    +
    +
    +

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

    + {% include "tables/table-tool-menu.html.twig" %} +
    +
    + {% include "tables/users.html.twig" with { + "table" : { + "id" : "table-group-users" + } + } %} +
    +
    +
    +
    +{% endblock %} +{% block scripts_page %} + + + + + {{ assets.js('js/form-widgets') | raw }} + + + {{ assets.js('js/pages/group') | raw }} +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/pages/groups.html.twig b/main/app/sprinkles/admin/templates/pages/groups.html.twig index 43b0618..014c678 100644 --- a/main/app/sprinkles/admin/templates/pages/groups.html.twig +++ b/main/app/sprinkles/admin/templates/pages/groups.html.twig @@ -1,51 +1,51 @@ -{% extends "pages/abstract/dashboard.html.twig" %} - -{% block stylesheets_page %} - - {{ assets.css('css/form-widgets') | raw }} -{% endblock %} - -{# Overrides blocks in head of base template #} -{% block page_title %}{{ translate("GROUP", 2) }}{% endblock %} - -{% block page_description %}{{ translate("GROUP.PAGE_DESCRIPTION") }}{% endblock %} - -{% block body_matter %} -
    -
    -
    -
    -

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

    - {% include "tables/table-tool-menu.html.twig" %} -
    -
    - {% include "tables/groups.html.twig" with { - "table" : { - "id" : "table-groups" - } - } %} -
    - {% if checkAccess('create_group') %} - - {% endif %} -
    -
    -
    -{% endblock %} -{% block scripts_page %} - - - - - {{ assets.js('js/form-widgets') | raw }} - - - {{ assets.js('js/pages/groups') | raw }} - -{% endblock %} +{% extends "pages/abstract/dashboard.html.twig" %} + +{% block stylesheets_page %} + + {{ assets.css('css/form-widgets') | raw }} +{% endblock %} + +{# Overrides blocks in head of base template #} +{% block page_title %}{{ translate("GROUP", 2) }}{% endblock %} + +{% block page_description %}{{ translate("GROUP.PAGE_DESCRIPTION") }}{% endblock %} + +{% block body_matter %} +
    +
    +
    +
    +

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

    + {% include "tables/table-tool-menu.html.twig" %} +
    +
    + {% include "tables/groups.html.twig" with { + "table" : { + "id" : "table-groups" + } + } %} +
    + {% if checkAccess('create_group') %} + + {% endif %} +
    +
    +
    +{% endblock %} +{% block scripts_page %} + + + + + {{ assets.js('js/form-widgets') | raw }} + + + {{ assets.js('js/pages/groups') | raw }} + +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/pages/permission.html.twig b/main/app/sprinkles/admin/templates/pages/permission.html.twig index 004131e..2b1ae3e 100644 --- a/main/app/sprinkles/admin/templates/pages/permission.html.twig +++ b/main/app/sprinkles/admin/templates/pages/permission.html.twig @@ -1,91 +1,91 @@ -{% extends "pages/abstract/dashboard.html.twig" %} - -{% block stylesheets_page %} - - {{ assets.css('css/form-widgets') | raw }} -{% endblock %} - -{# Overrides blocks in head of base template #} -{% block page_title %}{{ translate("PERMISSION", 2) }} | {{ permission.name }}{% endblock %} - -{% block page_description %}{{ translate("PERMISSION.INFO_PAGE", {name: permission.name}) }}{% endblock %} - -{% block body_matter %} -
    -
    -
    -
    -

    {{ translate("PERMISSION.SUMMARY") }}

    -
    -
    -
    - -
    - -

    {{ permission.name }}

    - -

    - {{ permission.description }} -

    -
    - {{ translate("PERMISSION.ID") }}: - - {{ permission.id }} - - -
    - {{ translate("SLUG_CONDITION") }} -
    -
    -

    - {{ permission.slug }} -

    -

    - ↳ - {{ permission.conditions }} -

    -
    - -
    -
    -
    -
    -
    -

    {{ translate("USER.WITH_PERMISSION") }}

    - {% include "tables/table-tool-menu.html.twig" %} -
    -
    - {% include "tables/users.html.twig" with { - "table" : { - "id" : "table-permission-users", - "columns" : ["via_roles"] - } - } %} -
    -
    -
    -
    -{% endblock %} -{% block scripts_page %} - - - - - {{ assets.js('js/form-widgets') | raw }} - - - {{ assets.js('js/pages/permission') | raw }} -{% endblock %} +{% extends "pages/abstract/dashboard.html.twig" %} + +{% block stylesheets_page %} + + {{ assets.css('css/form-widgets') | raw }} +{% endblock %} + +{# Overrides blocks in head of base template #} +{% block page_title %}{{ translate("PERMISSION", 2) }} | {{ permission.name }}{% endblock %} + +{% block page_description %}{{ translate("PERMISSION.INFO_PAGE", {name: permission.name}) }}{% endblock %} + +{% block body_matter %} +
    +
    +
    +
    +

    {{ translate("PERMISSION.SUMMARY") }}

    +
    +
    +
    + +
    + +

    {{ permission.name }}

    + +

    + {{ permission.description }} +

    +
    + {{ translate("PERMISSION.ID") }}: + + {{ permission.id }} + + +
    + {{ translate("SLUG_CONDITION") }} +
    +
    +

    + {{ permission.slug }} +

    +

    + ↳ + {{ permission.conditions }} +

    +
    + +
    +
    +
    +
    +
    +

    {{ translate("USER.WITH_PERMISSION") }}

    + {% include "tables/table-tool-menu.html.twig" %} +
    +
    + {% include "tables/users.html.twig" with { + "table" : { + "id" : "table-permission-users", + "columns" : ["via_roles"] + } + } %} +
    +
    +
    +
    +{% endblock %} +{% block scripts_page %} + + + + + {{ assets.js('js/form-widgets') | raw }} + + + {{ assets.js('js/pages/permission') | raw }} +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/pages/permissions.html.twig b/main/app/sprinkles/admin/templates/pages/permissions.html.twig index 5cf95da..099aa39 100644 --- a/main/app/sprinkles/admin/templates/pages/permissions.html.twig +++ b/main/app/sprinkles/admin/templates/pages/permissions.html.twig @@ -1,45 +1,45 @@ -{% extends "pages/abstract/dashboard.html.twig" %} - -{% block stylesheets_page %} - - {{ assets.css('css/form-widgets') | raw }} -{% endblock %} - -{# Overrides blocks in head of base template #} -{% block page_title %}{{ translate("PERMISSION", 2) }}{% endblock %} - -{% block page_description %}{{ translate("PERMISSION.PAGE_DESCRIPTION") }}{% endblock %} - -{% block body_matter %} -
    -
    -
    -
    -

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

    - {% include "tables/table-tool-menu.html.twig" %} -
    -
    - {% include "tables/permissions.html.twig" with { - "table" : { - "id" : "table-permissions" - } - } %} -
    -
    -
    -
    -{% endblock %} -{% block scripts_page %} - - - - - {{ assets.js('js/form-widgets') | raw }} - - - {{ assets.js('js/pages/permissions') | raw }} - -{% endblock %} +{% extends "pages/abstract/dashboard.html.twig" %} + +{% block stylesheets_page %} + + {{ assets.css('css/form-widgets') | raw }} +{% endblock %} + +{# Overrides blocks in head of base template #} +{% block page_title %}{{ translate("PERMISSION", 2) }}{% endblock %} + +{% block page_description %}{{ translate("PERMISSION.PAGE_DESCRIPTION") }}{% endblock %} + +{% block body_matter %} +
    +
    +
    +
    +

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

    + {% include "tables/table-tool-menu.html.twig" %} +
    +
    + {% include "tables/permissions.html.twig" with { + "table" : { + "id" : "table-permissions" + } + } %} +
    +
    +
    +
    +{% endblock %} +{% block scripts_page %} + + + + + {{ assets.js('js/form-widgets') | raw }} + + + {{ assets.js('js/pages/permissions') | raw }} + +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/pages/role.html.twig b/main/app/sprinkles/admin/templates/pages/role.html.twig index 1892d32..31a9f8a 100644 --- a/main/app/sprinkles/admin/templates/pages/role.html.twig +++ b/main/app/sprinkles/admin/templates/pages/role.html.twig @@ -1,129 +1,129 @@ -{% extends "pages/abstract/dashboard.html.twig" %} - -{% block stylesheets_page %} - - {{ assets.css('css/form-widgets') | raw }} -{% endblock %} - -{# Overrides blocks in head of base template #} -{% block page_title %}{{ translate("ROLE", 2) }} | {{ role.name }}{% endblock %} - -{% block page_description %}{{ translate("ROLE.INFO_PAGE", {name: role.name}) }}{% endblock %} - -{% block body_matter %} -
    -
    -
    -
    -

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

    - {% if 'tools' not in tools.hidden %} -
    -
    - - -
    -
    - {% endif %} -
    -
    -
    - -
    - -

    {{ role.name }}

    - - {% if 'description' not in fields.hidden %} -

    - {{ role.description }} -

    - {% endif %} - {% if 'users' not in fields.hidden %} -
    - {{ translate('USER', 2) }} -

    - {{ role.users.count }} -

    - {% endif %} -
    -
    -
    -
    -
    -
    -

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

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

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

    - {% include "tables/table-tool-menu.html.twig" %} -
    -
    - {% include "tables/users.html.twig" with { - "table" : { - "id" : "table-role-users", - "columns" : ["last_activity"] - } - } %} -
    -
    -
    -
    -{% endblock %} -{% block scripts_page %} - - - - - {{ assets.js('js/form-widgets') | raw }} - - - {{ assets.js('js/pages/role') | raw }} -{% endblock %} +{% extends "pages/abstract/dashboard.html.twig" %} + +{% block stylesheets_page %} + + {{ assets.css('css/form-widgets') | raw }} +{% endblock %} + +{# Overrides blocks in head of base template #} +{% block page_title %}{{ translate("ROLE", 2) }} | {{ role.name }}{% endblock %} + +{% block page_description %}{{ translate("ROLE.INFO_PAGE", {name: role.name}) }}{% endblock %} + +{% block body_matter %} +
    +
    +
    +
    +

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

    + {% if 'tools' not in tools.hidden %} +
    +
    + + +
    +
    + {% endif %} +
    +
    +
    + +
    + +

    {{ role.name }}

    + + {% if 'description' not in fields.hidden %} +

    + {{ role.description }} +

    + {% endif %} + {% if 'users' not in fields.hidden %} +
    + {{ translate('USER', 2) }} +

    + {{ role.users.count }} +

    + {% endif %} +
    +
    +
    +
    +
    +
    +

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

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

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

    + {% include "tables/table-tool-menu.html.twig" %} +
    +
    + {% include "tables/users.html.twig" with { + "table" : { + "id" : "table-role-users", + "columns" : ["last_activity"] + } + } %} +
    +
    +
    +
    +{% endblock %} +{% block scripts_page %} + + + + + {{ assets.js('js/form-widgets') | raw }} + + + {{ assets.js('js/pages/role') | raw }} +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/pages/roles.html.twig b/main/app/sprinkles/admin/templates/pages/roles.html.twig index 2677f87..a535a11 100644 --- a/main/app/sprinkles/admin/templates/pages/roles.html.twig +++ b/main/app/sprinkles/admin/templates/pages/roles.html.twig @@ -1,49 +1,49 @@ -{% extends "pages/abstract/dashboard.html.twig" %} - -{% block stylesheets_page %} - - {{ assets.css('css/form-widgets') | raw }} -{% endblock %} - -{# Overrides blocks in head of base template #} -{% block page_title %}{{ translate("ROLE", 2) }}{% endblock %} - -{% block page_description %}{{ translate("ROLE.PAGE_DESCRIPTION") }}{% endblock %} - -{% block body_matter %} -
    -
    -
    -
    -

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

    - {% include "tables/table-tool-menu.html.twig" %} -
    -
    - {% include "tables/roles.html.twig" with { - "table" : { - "id" : "table-roles" - } - } %} -
    - -
    -
    -
    -{% endblock %} -{% block scripts_page %} - - - - - {{ assets.js('js/form-widgets') | raw }} - - - {{ assets.js('js/pages/roles') | raw }} - -{% endblock %} +{% extends "pages/abstract/dashboard.html.twig" %} + +{% block stylesheets_page %} + + {{ assets.css('css/form-widgets') | raw }} +{% endblock %} + +{# Overrides blocks in head of base template #} +{% block page_title %}{{ translate("ROLE", 2) }}{% endblock %} + +{% block page_description %}{{ translate("ROLE.PAGE_DESCRIPTION") }}{% endblock %} + +{% block body_matter %} +
    +
    +
    +
    +

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

    + {% include "tables/table-tool-menu.html.twig" %} +
    +
    + {% include "tables/roles.html.twig" with { + "table" : { + "id" : "table-roles" + } + } %} +
    + +
    +
    +
    +{% endblock %} +{% block scripts_page %} + + + + + {{ assets.js('js/form-widgets') | raw }} + + + {{ assets.js('js/pages/roles') | raw }} + +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/pages/user.html.twig b/main/app/sprinkles/admin/templates/pages/user.html.twig index 47228fd..37675d7 100644 --- a/main/app/sprinkles/admin/templates/pages/user.html.twig +++ b/main/app/sprinkles/admin/templates/pages/user.html.twig @@ -1,208 +1,208 @@ -{% extends "pages/abstract/dashboard.html.twig" %} - -{% block stylesheets_page %} - - {{ assets.css('css/form-widgets') | raw }} -{% endblock %} - -{# Overrides blocks in head of base template #} -{% block page_title %}{{ translate("USER", 2) }} | {{ user.full_name }}{% endblock %} - -{% block page_description %}{{ translate("USER.INFO_PAGE", {name: user.user_name}) }}{% endblock %} - -{% block body_matter %} - {% block group_box %} - {% endblock %} -
    -
    -
    - {% block user_box %} -
    -
    -

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

    - {% if 'tools' not in tools.hidden %} -
    -
    - - -
    -
    - {% endif %} -
    -
    - {{ user.user_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 %}

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

    - - {{ user.email }} -

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

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

    - {% endif %} - - {% block user_profile %}{% endblock %} - - {% if 'roles' not in fields.hidden %} -
    - {{ translate("ROLE", 2) }} - -

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

    - {% endif %} -
    -
    - {% endblock %} -
    -
    - {% 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 { - "table" : { - "id" : "table-user-activities" - } - } %} -
    -
    - {% endblock %} -
    - {% endif %} -
    - {% if 'permissions' not in widgets.hidden %} -
    -
    -
    -
    -

    {{ 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 %} - - - - - {{ assets.js('js/form-widgets') | raw }} - - - {{ assets.js('js/pages/user') | raw }} -{% endblock %} +{% extends "pages/abstract/dashboard.html.twig" %} + +{% block stylesheets_page %} + + {{ assets.css('css/form-widgets') | raw }} +{% endblock %} + +{# Overrides blocks in head of base template #} +{% block page_title %}{{ translate("USER", 2) }} | {{ user.full_name }}{% endblock %} + +{% block page_description %}{{ translate("USER.INFO_PAGE", {name: user.user_name}) }}{% endblock %} + +{% block body_matter %} + {% block group_box %} + {% endblock %} +
    +
    +
    + {% block user_box %} +
    +
    +

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

    + {% if 'tools' not in tools.hidden %} +
    +
    + + +
    +
    + {% endif %} +
    +
    + {{ user.user_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 %}

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

    + + {{ user.email }} +

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

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

    + {% endif %} + + {% block user_profile %}{% endblock %} + + {% if 'roles' not in fields.hidden %} +
    + {{ translate("ROLE", 2) }} + +

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

    + {% endif %} +
    +
    + {% endblock %} +
    +
    + {% 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 { + "table" : { + "id" : "table-user-activities" + } + } %} +
    +
    + {% endblock %} +
    + {% endif %} +
    + {% if 'permissions' not in widgets.hidden %} +
    +
    +
    +
    +

    {{ 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 %} + + + + + {{ assets.js('js/form-widgets') | raw }} + + + {{ assets.js('js/pages/user') | raw }} +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/pages/users.html.twig b/main/app/sprinkles/admin/templates/pages/users.html.twig index cbd86f4..5aacfc2 100644 --- a/main/app/sprinkles/admin/templates/pages/users.html.twig +++ b/main/app/sprinkles/admin/templates/pages/users.html.twig @@ -1,52 +1,52 @@ -{% extends "pages/abstract/dashboard.html.twig" %} - -{% block stylesheets_page %} - - {{ assets.css('css/form-widgets') | raw }} -{% endblock %} - -{# Overrides blocks in head of base template #} -{% block page_title %}{{ translate("USER", 2) }}{% endblock %} - -{% block page_description %}{{ translate("USER.PAGE_DESCRIPTION") }}{% endblock %} - -{% block body_matter %} -
    -
    -
    -
    -

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

    - {% include "tables/table-tool-menu.html.twig" %} -
    -
    - {% include "tables/users.html.twig" with { - "table" : { - "id" : "table-users", - "columns" : ["last_activity"] - } - } %} -
    - {% if checkAccess('create_user') %} - - {% endif %} -
    -
    -
    -{% endblock %} -{% block scripts_page %} - - - - - {{ assets.js('js/form-widgets') | raw }} - - - {{ assets.js('js/pages/users') | raw }} - -{% endblock %} +{% extends "pages/abstract/dashboard.html.twig" %} + +{% block stylesheets_page %} + + {{ assets.css('css/form-widgets') | raw }} +{% endblock %} + +{# Overrides blocks in head of base template #} +{% block page_title %}{{ translate("USER", 2) }}{% endblock %} + +{% block page_description %}{{ translate("USER.PAGE_DESCRIPTION") }}{% endblock %} + +{% block body_matter %} +
    +
    +
    +
    +

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

    + {% include "tables/table-tool-menu.html.twig" %} +
    +
    + {% include "tables/users.html.twig" with { + "table" : { + "id" : "table-users", + "columns" : ["last_activity"] + } + } %} +
    + {% if checkAccess('create_user') %} + + {% endif %} +
    +
    +
    +{% endblock %} +{% block scripts_page %} + + + + + {{ assets.js('js/form-widgets') | raw }} + + + {{ assets.js('js/pages/users') | raw }} + +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/tables/activities.html.twig b/main/app/sprinkles/admin/templates/tables/activities.html.twig index dce1d99..0da5601 100644 --- a/main/app/sprinkles/admin/templates/tables/activities.html.twig +++ b/main/app/sprinkles/admin/templates/tables/activities.html.twig @@ -1,80 +1,80 @@ -{# This partial template renders a table of user activities, to be populated with rows via an AJAX request. - # This extends a generic template for paginated tables. - # - # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used - # to render the table cells with the data from the AJAX request. -#} - -{% extends "tables/table-paginated.html.twig" %} - -{% block table %} - - - - - {% if 'user' in table.columns %} - - {% endif %} - - - - - -
    {{ translate('ACTIVITY.TIME') }} {{ translate('USER') }} {{ translate("DESCRIPTION") }}
    -{% endblock %} - -{% block table_cell_templates %} - {# This contains a series of - - - - - {% endverbatim %} -{% endblock %} +{# This partial template renders a table of user activities, to be populated with rows via an AJAX request. + # This extends a generic template for paginated tables. + # + # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used + # to render the table cells with the data from the AJAX request. +#} + +{% extends "tables/table-paginated.html.twig" %} + +{% block table %} + + + + + {% if 'user' in table.columns %} + + {% endif %} + + + + + +
    {{ translate('ACTIVITY.TIME') }} {{ translate('USER') }} {{ translate("DESCRIPTION") }}
    +{% endblock %} + +{% block table_cell_templates %} + {# This contains a series of + + + + + {% endverbatim %} +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/tables/groups.html.twig b/main/app/sprinkles/admin/templates/tables/groups.html.twig index 8d14e98..e25d4c2 100644 --- a/main/app/sprinkles/admin/templates/tables/groups.html.twig +++ b/main/app/sprinkles/admin/templates/tables/groups.html.twig @@ -1,74 +1,74 @@ -{# This partial template renders a table of groups, to be populated with rows via an AJAX request. - # This extends a generic template for paginated tables. - # - # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used - # to render the table cells with the data from the AJAX request. -#} - -{% extends "tables/table-paginated.html.twig" %} - -{% block table %} - - - - - - - - - - -
    {{ translate('GROUP') }} {{ translate("DESCRIPTION") }} {{ translate("ACTIONS") }}
    -{% endblock %} - -{% block table_cell_templates %} - {# This contains a series of - - - - - {% endverbatim %} -{% endblock %} +{# This partial template renders a table of groups, to be populated with rows via an AJAX request. + # This extends a generic template for paginated tables. + # + # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used + # to render the table cells with the data from the AJAX request. +#} + +{% extends "tables/table-paginated.html.twig" %} + +{% block table %} + + + + + + + + + + +
    {{ translate('GROUP') }} {{ translate("DESCRIPTION") }} {{ translate("ACTIONS") }}
    +{% endblock %} + +{% block table_cell_templates %} + {# This contains a series of + + + + + {% endverbatim %} +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/tables/permissions.html.twig b/main/app/sprinkles/admin/templates/tables/permissions.html.twig index 6ff13c6..48f3afa 100644 --- a/main/app/sprinkles/admin/templates/tables/permissions.html.twig +++ b/main/app/sprinkles/admin/templates/tables/permissions.html.twig @@ -1,71 +1,71 @@ -{# This partial template renders a table of permissions, to be populated with rows via an AJAX request. - # This extends a generic template for paginated tables. - # - # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used - # to render the table cells with the data from the AJAX request. -#} - -{% extends "tables/table-paginated.html.twig" %} - -{% block table %} - - - - - - {% if 'via_roles' in table.columns %} - - {% endif %} - - - - -
    {{ translate('PERMISSION') }} {{ translate('SLUG_CONDITION') }} {{ translate('PERMISSION.VIA_ROLES') }}
    -{% endblock %} - -{% block table_cell_templates %} - {# This contains a series of - - - - - {% endverbatim %} -{% endblock %} +{# This partial template renders a table of permissions, to be populated with rows via an AJAX request. + # This extends a generic template for paginated tables. + # + # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used + # to render the table cells with the data from the AJAX request. +#} + +{% extends "tables/table-paginated.html.twig" %} + +{% block table %} + + + + + + {% if 'via_roles' in table.columns %} + + {% endif %} + + + + +
    {{ translate('PERMISSION') }} {{ translate('SLUG_CONDITION') }} {{ translate('PERMISSION.VIA_ROLES') }}
    +{% endblock %} + +{% block table_cell_templates %} + {# This contains a series of + + + + + {% endverbatim %} +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/tables/roles.html.twig b/main/app/sprinkles/admin/templates/tables/roles.html.twig index f8e136b..088052e 100644 --- a/main/app/sprinkles/admin/templates/tables/roles.html.twig +++ b/main/app/sprinkles/admin/templates/tables/roles.html.twig @@ -1,79 +1,79 @@ -{# This partial template renders a table of roles, to be populated with rows via an AJAX request. - # This extends a generic template for paginated tables. - # - # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used - # to render the table cells with the data from the AJAX request. -#} - -{% extends "tables/table-paginated.html.twig" %} - -{% block table %} - - - - - - - - - - -
    {{ translate('ROLE') }} {{ translate('DESCRIPTION') }} {{ translate('ACTIONS') }}
    -{% endblock %} - -{% block table_cell_templates %} - {# This contains a series of - - - - - {% endverbatim %} -{% endblock %} +{# This partial template renders a table of roles, to be populated with rows via an AJAX request. + # This extends a generic template for paginated tables. + # + # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used + # to render the table cells with the data from the AJAX request. +#} + +{% extends "tables/table-paginated.html.twig" %} + +{% block table %} + + + + + + + + + + +
    {{ translate('ROLE') }} {{ translate('DESCRIPTION') }} {{ translate('ACTIONS') }}
    +{% endblock %} + +{% block table_cell_templates %} + {# This contains a series of + + + + + {% endverbatim %} +{% endblock %} diff --git a/main/app/sprinkles/admin/templates/tables/users.html.twig b/main/app/sprinkles/admin/templates/tables/users.html.twig index bd9fffe..aae91d0 100644 --- a/main/app/sprinkles/admin/templates/tables/users.html.twig +++ b/main/app/sprinkles/admin/templates/tables/users.html.twig @@ -1,157 +1,157 @@ -{# This partial template renders a table of users, to be populated with rows via an AJAX request. - # This extends a generic template for paginated tables. - # - # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used - # to render the table cells with the data from the AJAX request. -#} - -{% extends "tables/table-paginated.html.twig" %} - -{% block table %} - - - - - {% if 'last_activity' in table.columns %} - - {% endif %} - {% if 'via_roles' in table.columns %} - - {% endif %} - - - - - - -
    {{ translate('USER') }} {{ translate("ACTIVITY.LAST") }} {{ translate('PERMISSION.VIA_ROLES') }}{{ translate("STATUS") }} {{ translate("ACTIONS") }}
    -{% endblock %} - -{% block table_cell_templates %} - {# This contains a series of - - - - - - - - {% endverbatim %} -{% endblock %} +{# This partial template renders a table of users, to be populated with rows via an AJAX request. + # This extends a generic template for paginated tables. + # + # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used + # to render the table cells with the data from the AJAX request. +#} + +{% extends "tables/table-paginated.html.twig" %} + +{% block table %} + + + + + {% if 'last_activity' in table.columns %} + + {% endif %} + {% if 'via_roles' in table.columns %} + + {% endif %} + + + + + + +
    {{ translate('USER') }} {{ translate("ACTIVITY.LAST") }} {{ translate('PERMISSION.VIA_ROLES') }}{{ translate("STATUS") }} {{ translate("ACTIONS") }}
    +{% endblock %} + +{% block table_cell_templates %} + {# This contains a series of + + + + + + + + {% endverbatim %} +{% endblock %} -- cgit v1.2.3