{% block search_bar %} {% endblock %}
{% for machine_cluster in core.get_clusters() %}
{% block machine_cluster_card %}
{% block card_tag %} {% endblock %}
{% set nb_machines = core.get_nb_machines(machine_cluster.id_machine_cluster) %}
{% block card_title %} {{ machine_cluster.name }} {% endblock %}
{% block card_remove %} {{ core.icon.remove | raw }} {% endblock %}
{% block card_edit %} {{ core.icon.edit | raw }} {% endblock %}
{% block card_count %}
{{ core.icon.device | raw }}
{{ nb_machines }} machines
{% endblock %}
{% block card_permission_list %}
{% for permission in core.get_permissions() %}
{% block card_permission %}
{% block card_permission_name %}
{{ core.permission_translate(permission.name, 'fr') }}
{% endblock %}
{% block auth_user_cluster_list %}
{% for user_cluster in core.get_authed_user_clusters(machine_cluster.id_machine_cluster, permission.id_permission) %}
{% block auth_user_cluster %}
{% block auth_user_cluster_name %} {{ user_cluster.name }} {% endblock %}
{% endblock %}
{% endfor %}
{% endblock %}
+
{% endblock %}
{% endfor %}
{% endblock %}
{% endblock %}
{# if no result #}
{% else %}
{% block no_result %}
Aucun groupe trouvé.
{% endblock %}
{% endfor %}