mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
62 lines
2.5 KiB
Twig
62 lines
2.5 KiB
Twig
{% extends '@ChillMain/Admin/Permission/layout_crud_permission_index.html.twig' %}
|
|
|
|
{% block admin_content -%}
|
|
|
|
<h1>{{"Users"|trans}}</h1>
|
|
{% for entity in entities %}
|
|
<div class="flex-table">
|
|
<div class="item-bloc">
|
|
<div class="item-row">
|
|
<div class="item-col">
|
|
{{ entity.label }}
|
|
{% if entity.isEnabled %}
|
|
<i class="fa fa-check chill-green"></i>
|
|
{% else %}
|
|
<i class="fa fa-times chill-red"></i>
|
|
{% endif %}
|
|
</div>
|
|
<div class="item-col"><i>{{ entity.email }}</i></div>
|
|
</div>
|
|
<div class="item-row">
|
|
<div class="item-col">
|
|
login: {{ entity.username|e('html_attr') }}
|
|
</div>
|
|
<div class="item-col">
|
|
{% if entity.userJob %}
|
|
{{ entity.userJob.label|localize_translatable_string }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="item-row">
|
|
<div class="item-col">
|
|
{% if entity.mainScope %}
|
|
{{ entity.mainScope.name|localize_translatable_string }}
|
|
{% endif %}
|
|
{% if entity.mainCenter %}
|
|
, {{ entity.mainCenter.name }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="item-row">
|
|
<ul class="record_actions">
|
|
<li>
|
|
<a class="btn btn-edit" href="{{ path('chill_crud_admin_user_edit', { 'id': entity.id }) }}"></a>
|
|
</li>
|
|
<li>
|
|
<a class="btn btn-chill-red" href="{{ path('admin_user_edit_password', { 'id' : entity.id }) }}" title="{{ 'Edit password'|trans|e('html_attr') }}"><i class="fa fa-ellipsis-h"></i></a>
|
|
</li>
|
|
{% if is_granted('ROLE_ALLOWED_TO_SWITCH') %}
|
|
<li>
|
|
<a class="btn btn-chill-blue" href="{{ path('chill_main_homepage', {'_switch_user': entity.username }) }}" title="{{ "Impersonate"|trans|e('html_attr') }}"><i class="fa fa-user-secret"></i></a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{{ chill_pagination(paginator) }}
|
|
|
|
{% endblock %} |