2017-11-08 12:04:49 +00:00
|
|
|
{% block search_bar %} <input type='text' class='searchbar' placeholder='Recherche'> {% endblock %}
|
2017-11-06 14:15:24 +00:00
|
|
|
|
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
{% block group_list %}
|
2017-11-06 14:15:24 +00:00
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
{% for cluster in core.get_clusters() %}
|
2017-11-06 14:15:24 +00:00
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
{% block group_card %}
|
2017-11-06 14:15:24 +00:00
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
{% block card_tag %} <article class='inline-box' id='{{ cluster.id_machine_cluster }}'> {% endblock %}
|
2017-11-06 14:15:24 +00:00
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
{% set machinelist = core.get_members(cluster.id_machine_cluster) %}
|
2017-11-06 14:15:24 +00:00
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
{% block card_title %} <span class='title' style='color: {{ core.theme }}'>{{ cluster.name }}</span> {% endblock %}
|
2017-11-06 14:15:24 +00:00
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
{% block card_remove %} <span class='link_remove' data-cluster='{{ cluster.id_machine_cluster }}'>{{ core.icon.remove | raw }}</span> {% endblock %}
|
|
|
|
{% block card_edit %} <span class='link_edit' data-cluster='{{ cluster.id_machine_cluster }}'>{{ core.icon.edit | raw }}</span> {% endblock %}
|
2017-11-06 14:15:24 +00:00
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
{# To be patched #}
|
|
|
|
{% block card_patch %}{% endblock %}
|
|
|
|
|
|
|
|
{% block card_count %}
|
|
|
|
|
|
|
|
<span class='code'>
|
|
|
|
{{ core.icon.device | raw }}
|
|
|
|
<span>{{ machinelist | length }} machines</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block card_option %}
|
|
|
|
|
|
|
|
<span class='option'>
|
|
|
|
{{ core.icon.option | raw }}
|
|
|
|
{% for option in core.get_options(cluster.id_machine_cluster) %}
|
|
|
|
<span class='ignore'>
|
|
|
|
<span>{{ option.name }}:{{ option.daemon }}</span>
|
|
|
|
</span>
|
|
|
|
{% else %}
|
|
|
|
<span class='ignore'>Aucune option</span>
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
2017-11-08 13:05:16 +00:00
|
|
|
{% block card_members %}
|
2017-11-08 12:04:49 +00:00
|
|
|
|
|
|
|
<span class='groups'>
|
|
|
|
{{ core.icon.group | raw }}
|
|
|
|
|
|
|
|
<span class='ignore'>
|
|
|
|
{% for machine in machinelist %}
|
|
|
|
<span>
|
|
|
|
{{ machine.name }}
|
|
|
|
<span class='rem-member' data-member='{{ machine.id_machine }}' data-cluster='{{ cluster.id_machine_cluster }}'></span>
|
|
|
|
</span>
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class='add-member' data-cluster='{{ cluster.id_machine_cluster }}'>+</span>
|
2017-11-06 14:15:24 +00:00
|
|
|
</span>
|
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
</article>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{# if no result #}
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{% block no_result %}
|
2017-11-06 14:15:24 +00:00
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
<article class='inline-box'>
|
2018-04-17 14:41:44 +00:00
|
|
|
<span>Aucun groupe machine trouvé.</span>
|
2017-11-08 12:04:49 +00:00
|
|
|
</article>
|
2017-11-06 14:15:24 +00:00
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
{% endblock %}
|
2017-11-06 14:15:24 +00:00
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
{% endfor %}
|
2017-11-06 14:15:24 +00:00
|
|
|
|
2017-11-08 12:04:49 +00:00
|
|
|
{% endblock %}
|