54 lines
1.2 KiB
Twig
54 lines
1.2 KiB
Twig
<input type='text' class='searchbar' placeholder='Recherche'>
|
|
|
|
{% for user in core.get_users() %}
|
|
|
|
<article class='inline-box' id='{{ user.id_user }}'>
|
|
|
|
<span class='title' style='color: {{ core.theme }}'>{{ user.firstname }} {{ user.lastname }} <span>#{{ user.username }}</span></span>
|
|
<span class='link_remove' data-user='{{ user.id_user }}'>{{ core.icon.remove | raw }}</span>
|
|
|
|
<span class='link_edit' data-user='{{ user.id_user }}'>{{ core.icon.edit | raw }}</span>
|
|
|
|
<span class='code'>
|
|
{{ core.icon.card | raw }}
|
|
<span>{{ user.code }}</span>
|
|
</span>
|
|
|
|
<span class='mail'>
|
|
{{ core.icon.mail | raw }}
|
|
|
|
<a href='mailto:{{ user.mail }}'>
|
|
<span>{{ user.mail }}</span>
|
|
</a>
|
|
</span>
|
|
|
|
<span class='groups'>
|
|
{{ core.icon.group | raw }}
|
|
|
|
<span class='ignore'>
|
|
{% for cluster in core.get_clusters(user.id_user) %}
|
|
|
|
|
|
<span>
|
|
{{ cluster.name }}
|
|
<span class='rem-group' data-group='{{ cluster.id_user_cluster }}' data-user='{{ user.id_user }}'></span>
|
|
</span>
|
|
|
|
{% endfor %}
|
|
</span>
|
|
|
|
<span class='add-group' data-user='{{ user.id_user }}'>+</span>
|
|
|
|
</span>
|
|
|
|
</article>
|
|
|
|
{# if no result #}
|
|
{% else %}
|
|
|
|
<article class='inline-box'>
|
|
<span>Aucun utilisateur trouvé</span>
|
|
</article>
|
|
|
|
{% endfor %}
|