blob: 5aacfc22e4468f5c62c4c002e43fa68a16685787 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{% extends "pages/abstract/dashboard.html.twig" %}
{% block stylesheets_page %}
<!-- Page-specific CSS asset bundle -->
{{ 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 %}
<div class="row">
<div class="col-md-12">
<div id="widget-users" class="box box-primary">
<div class="box-header">
<h3 class="box-title pull-left"><i class="fa fa-fw fa-user"></i> {{ translate('USER', 2) }}</h3>
{% include "tables/table-tool-menu.html.twig" %}
</div>
<div class="box-body">
{% include "tables/users.html.twig" with {
"table" : {
"id" : "table-users",
"columns" : ["last_activity"]
}
} %}
</div>
{% if checkAccess('create_user') %}
<div class="box-footer">
<button type="button" class="btn btn-success js-user-create">
<i class="fa fa-plus-square"></i> {{ translate("USER.CREATE") }}
</button>
</div>
{% endif %}
</div>
</div>
</div>
{% endblock %}
{% block scripts_page %}
<!-- Include validation rules -->
<script>
{% include "pages/partials/page.js.twig" %}
</script>
<!-- Include form widgets JS -->
{{ assets.js('js/form-widgets') | raw }}
<!-- Include page-specific JS -->
{{ assets.js('js/pages/users') | raw }}
{% endblock %}
|