48 lines
1.6 KiB
Twig
48 lines
1.6 KiB
Twig
<input type='text' class='searchbar' placeholder='Recherche'>
|
|
|
|
{% for machine_cluster in f_clusters() %}
|
|
<article class='inline-box' id='{{ machine_cluster.id_machine_cluster }}'>
|
|
|
|
{% set nbmachines = f_nbmachines(machine_cluster.id_machine_cluster) %}
|
|
|
|
<span class='title' style='color: {{ p_theme }}'>{{ machine_cluster.name }}</span>
|
|
{# <span class='link_remove' data-cluster='{{ machine_cluster.id_machine_cluster }}'>{{ p_icon.remove | raw }}</span>
|
|
|
|
<span class='link_edit' data-cluster='{{ machine_cluster.id_machine_cluster }}'>{{ p_icon.edit | raw }}</span> #}
|
|
|
|
<span class='code'>
|
|
{{ p_icon.device | raw }}
|
|
<span>{{ nbmachines }} machines</span>
|
|
</span>
|
|
|
|
|
|
{% for permission in f_permissions() %}
|
|
|
|
<span class='groups'>
|
|
<span style='border-color: #ddd; background-color: #eee;'>
|
|
{{ permission.name | translate('fr') }}
|
|
<span class='icon-permission'></span>
|
|
</span>
|
|
|
|
{% for user_cluster in f_userclusters(machine_cluster.id_machine_cluster,permission.id_permission) %}
|
|
<span>
|
|
{{ user_cluster.name }}
|
|
<span class='rem-permission' data-permission='{{ permission.id_permission }}' data-source='{{ user_cluster.id_user_cluster }}' data-target='{{ machine_cluster.id_machine_cluster }}'></span>
|
|
</span>
|
|
{% endfor %}
|
|
<span class='add-permission' data-target='{{ machine_cluster.id_machine_cluster }}' data-permission='{{ permission.id_permission }}'>+</span>
|
|
</span>
|
|
|
|
{% endfor %}
|
|
|
|
</article>
|
|
|
|
{# if no result #}
|
|
{% else %}
|
|
|
|
<article class='inline-box'>
|
|
<span>Aucun groupe trouvé.</span>
|
|
</article>
|
|
|
|
{% endfor %}
|