SMMP/build/generic/view/user/group/main.twig

65 lines
1.7 KiB
Twig
Raw Normal View History

2017-11-08 13:05:16 +00:00
{% block search_bar %} <input type='text' class='searchbar' placeholder='Recherche'> {% endblock %}
2017-11-08 13:05:16 +00:00
{% block group_list %}
2017-11-08 13:05:16 +00:00
{% for cluster in core.get_clusters() %}
2017-11-08 13:05:16 +00:00
{% block group_card %}
2017-11-08 13:05:16 +00:00
{% block card_tag %} <article class='inline-box' id='{{ cluster.id_user_cluster }}'> {% endblock %}
2017-11-08 13:05:16 +00:00
{% set userlist = core.get_members(cluster.id_user_cluster) %}
2017-11-08 13:05:16 +00:00
{% block card_title %} <span class='title' style='color: {{ core.theme }}'>{{ cluster.name }}</span> {% endblock %}
2017-11-08 13:05:16 +00:00
{% block card_remove %} <span class='link_remove' data-cluster='{{ cluster.id_user_cluster }}'>{{ core.icon.remove | raw }}</span> {% endblock %}
{% block card_edit %} <span class='link_edit' data-cluster='{{ cluster.id_user_cluster }}'>{{ core.icon.edit | raw }}</span> {% endblock %}
2017-11-08 13:05:16 +00:00
{% block card_count %}
2017-11-08 13:05:16 +00:00
<span class='code'>
{{ core.icon.type | raw }}
<span>{{ userlist | length }} utilisateurs</span>
</span>
2017-11-08 13:05:16 +00:00
{% endblock %}
2017-11-08 13:05:16 +00:00
{% block card_members %}
2017-11-08 13:05:16 +00:00
<span class='groups'>
{{ core.icon.group | raw }}
2017-11-08 13:05:16 +00:00
<span class='ignore'>
{% for user in userlist %}
2017-11-08 13:05:16 +00:00
<span>
{{ user.username }}
<span class='rem-member' data-member='{{ user.id_user }}' data-cluster='{{ cluster.id_user_cluster }}'></span>
</span>
{% endfor %}
</span>
<span class='add-member' data-cluster='{{ cluster.id_user_cluster }}'>+</span>
</span>
{% endblock %}
</article>
{% endblock %}
{# if no result #}
{% else %}
{% block no_result %}
<article class='inline-box'>
<span>Aucun groupe utilisateur trouvé.</span>
2017-11-08 13:05:16 +00:00
</article>
{% endblock %}
{% endfor %}
{% endblock %}