SMMP/build/viewer/view/user/user_view.twig

43 lines
1015 B
Twig

<input type='text' class='searchbar' placeholder='Recherche'>
{% for user in f_users() %}
<article class='inline-box' id='{{ user.id_user }}'>
<span class='title' style='color: {{ p_theme }}'>{{ user.firstname }} {{ user.lastname }} <span>#{{ user.username }}</span></span>
<span class='link_remove' data-user='{{ user.id_user }}'>{{ p_icon.remove | raw }}</span>
<span class='link_edit' data-user='{{ user.id_user }}'>{{ p_icon.edit | raw }}</span>
<span class='code'>
{{ p_icon.card | raw }}
<span>{{ user.code }}</span>
</span>
<span class='mail'>
{{ p_icon.mail | raw }}
<a href='mailto:{{ user.mail }}'>
<span>{{ user.mail }}</span>
</a>
</span>
<span class='groups'>
{{ p_icon.group | raw }}
{% for cluster in f_clusters(user.id_user) %}
<span>
{{ cluster.name }}
<span class='rem-group' data-group='{{ cluster.id_cluster }}' data-user='{{ user.id_user }}'></span>
</span>
{% endfor %}
</span>
</article>
{% endfor %}