From cf14306c2b3f82a81f8d56669a71633b4d4b5fce Mon Sep 17 00:00:00 2001 From: marvin-borner@live.com Date: Mon, 16 Apr 2018 21:09:05 +0200 Subject: Main merge to user management system - files are now at /main/public/ --- .../admin/templates/pages/dashboard.html.twig | 282 +++++++++++++++++++++ 1 file changed, 282 insertions(+) create mode 100755 main/app/sprinkles/admin/templates/pages/dashboard.html.twig (limited to 'main/app/sprinkles/admin/templates/pages/dashboard.html.twig') diff --git a/main/app/sprinkles/admin/templates/pages/dashboard.html.twig b/main/app/sprinkles/admin/templates/pages/dashboard.html.twig new file mode 100755 index 0000000..f9c85a3 --- /dev/null +++ b/main/app/sprinkles/admin/templates/pages/dashboard.html.twig @@ -0,0 +1,282 @@ +{% 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') %} +
+
+ +
+ +
+ {{ translate("USER", 2) }} + {{counter.users}} +
+ +
+ +
+
+ + +
+ +
+ +
+ {{ translate("ROLE", 2) }} + {{counter.roles}} +
+ +
+ +
+
+ + +
+ +
+ +
+ {{ translate("GROUP", 2) }} + {{counter.groups}} +
+ +
+ +
+
+ +
+ + + {% 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 -- cgit v1.2.3