mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge branch 'issue479_admin_user' into 'master'
user admin See merge request Chill-Projet/chill-bundles!372
This commit is contained in:
commit
ddb048daca
@ -27,7 +27,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{% for menu in menus %}
|
{% for menu in menus %}
|
||||||
<a class="list-group-item list-group-item-action" href="{{ menu.uri }}">
|
<a class="list-group-item list-group-item-action" href="{{ menu.uri }}">
|
||||||
{{ menu.label|upper }}
|
{{ menu.label|trans|upper }}
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,44 +1,43 @@
|
|||||||
{% extends '@ChillMain/Admin/Permission/layout_crud_permission_index.html.twig' %}
|
{% extends '@ChillMain/Admin/Permission/layout_crud_permission_index.html.twig' %}
|
||||||
|
|
||||||
{% block admin_content -%}
|
{% block admin_content -%}
|
||||||
{% embed '@ChillMain/CRUD/_index.html.twig' %}
|
|
||||||
{% block table_entities_thead_tr %}
|
<h1>{{"Users"|trans}}</h1>
|
||||||
<th>{{ 'crud.admin_user.index.is_active'|trans }}</th>
|
|
||||||
<th>{{ 'crud.admin_user.index.usernames'|trans }}</th>
|
|
||||||
<th>{{ 'crud.admin_user.index.mains'|trans }}</th>
|
|
||||||
<th> </th>
|
|
||||||
{% endblock %}
|
|
||||||
{% block table_entities_tbody %}
|
|
||||||
{% for entity in entities %}
|
{% for entity in entities %}
|
||||||
<tr data-username="{{ entity.username|e('html_attr') }}">
|
<div class="flex-table">
|
||||||
<td>
|
<div class="item-bloc">
|
||||||
|
<div class="item-row">
|
||||||
|
<div class="item-col">
|
||||||
|
{{ entity.label }}
|
||||||
{% if entity.isEnabled %}
|
{% if entity.isEnabled %}
|
||||||
<i class="fa fa-check chill-green"></i>
|
<i class="fa fa-check chill-green"></i>
|
||||||
{% else %}
|
{% else %}
|
||||||
<i class="fa fa-times chill-red"></i>
|
<i class="fa fa-times chill-red"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</div>
|
||||||
<td>
|
<div class="item-col"><i>{{ entity.email }}</i></div>
|
||||||
{{ entity.username }}
|
</div>
|
||||||
<br/>
|
<div class="item-row">
|
||||||
{{ entity.label }}
|
<div class="item-col">
|
||||||
<br/>
|
login: {{ entity.username|e('html_attr') }}
|
||||||
{{ entity.email }}
|
</div>
|
||||||
</td>
|
<div class="item-col">
|
||||||
<td>
|
|
||||||
{% if entity.userJob %}
|
{% if entity.userJob %}
|
||||||
{{ entity.userJob.label|localize_translatable_string }}
|
{{ entity.userJob.label|localize_translatable_string }}
|
||||||
<br/>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-row">
|
||||||
|
<div class="item-col">
|
||||||
{% if entity.mainScope %}
|
{% if entity.mainScope %}
|
||||||
{{ entity.mainScope.name|localize_translatable_string }}
|
{{ entity.mainScope.name|localize_translatable_string }}
|
||||||
<br/>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if entity.mainCenter %}
|
{% if entity.mainCenter %}
|
||||||
{{ entity.mainCenter.name }}
|
, {{ entity.mainCenter.name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</div>
|
||||||
<td>
|
</div>
|
||||||
|
<div class="item-row">
|
||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<li>
|
<li>
|
||||||
<a class="btn btn-edit" href="{{ path('chill_crud_admin_user_edit', { 'id': entity.id }) }}"></a>
|
<a class="btn btn-edit" href="{{ path('chill_crud_admin_user_edit', { 'id': entity.id }) }}"></a>
|
||||||
@ -52,9 +51,12 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
|
||||||
{% endembed %}
|
{{ chill_pagination(paginator) }}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user