Blocks in view: user.group
This commit is contained in:
parent
6c94f1064b
commit
4897fad9e6
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block card_group %}
|
{% block card_members %}
|
||||||
|
|
||||||
<span class='groups'>
|
<span class='groups'>
|
||||||
{{ core.icon.group | raw }}
|
{{ core.icon.group | raw }}
|
||||||
|
|
|
@ -1,21 +1,31 @@
|
||||||
<input type='text' class='searchbar' placeholder='Recherche'>
|
{% block search_bar %} <input type='text' class='searchbar' placeholder='Recherche'> {% endblock %}
|
||||||
|
|
||||||
|
{% block group_list %}
|
||||||
|
|
||||||
{% for cluster in core.get_clusters() %}
|
{% for cluster in core.get_clusters() %}
|
||||||
<article class='inline-box' id='{{ cluster.id_user_cluster }}'>
|
|
||||||
|
{% block group_card %}
|
||||||
|
|
||||||
|
{% block card_tag %} <article class='inline-box' id='{{ cluster.id_user_cluster }}'> {% endblock %}
|
||||||
|
|
||||||
{% set userlist = core.get_members(cluster.id_user_cluster) %}
|
{% set userlist = core.get_members(cluster.id_user_cluster) %}
|
||||||
|
|
||||||
|
{% block card_title %} <span class='title' style='color: {{ core.theme }}'>{{ cluster.name }}</span> {% endblock %}
|
||||||
|
|
||||||
<span class='title' style='color: {{ core.theme }}'>{{ cluster.name }}</span>
|
{% block card_remove %} <span class='link_remove' data-cluster='{{ cluster.id_user_cluster }}'>{{ core.icon.remove | raw }}</span> {% endblock %}
|
||||||
<span class='link_remove' data-cluster='{{ cluster.id_user_cluster }}'>{{ core.icon.remove | raw }}</span>
|
{% block card_edit %} <span class='link_edit' data-cluster='{{ cluster.id_user_cluster }}'>{{ core.icon.edit | raw }}</span> {% endblock %}
|
||||||
|
|
||||||
<span class='link_edit' data-cluster='{{ cluster.id_user_cluster }}'>{{ core.icon.edit | raw }}</span>
|
{% block card_count %}
|
||||||
|
|
||||||
<span class='code'>
|
<span class='code'>
|
||||||
{{ core.icon.type | raw }}
|
{{ core.icon.type | raw }}
|
||||||
<span>{{ userlist | length }} utilisateurs</span>
|
<span>{{ userlist | length }} utilisateurs</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block card_members %}
|
||||||
|
|
||||||
<span class='groups'>
|
<span class='groups'>
|
||||||
{{ core.icon.group | raw }}
|
{{ core.icon.group | raw }}
|
||||||
|
|
||||||
|
@ -33,12 +43,23 @@
|
||||||
<span class='add-member' data-cluster='{{ cluster.id_user_cluster }}'>+</span>
|
<span class='add-member' data-cluster='{{ cluster.id_user_cluster }}'>+</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{# if no result #}
|
{# if no result #}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
|
{% block no_result %}
|
||||||
|
|
||||||
<article class='inline-box'>
|
<article class='inline-box'>
|
||||||
<span>Aucun groupe trouvé.</span>
|
<span>Aucun groupe trouvé.</span>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Reference in New Issue