Blocks in view: group.permission
This commit is contained in:
parent
574e218da4
commit
0a3d4d9a0a
|
@ -1,50 +1,86 @@
|
||||||
<input type='text' class='searchbar' placeholder='Recherche'>
|
{% block search_bar %} <input type='text' class='searchbar' placeholder='Recherche'> {% endblock %}
|
||||||
|
|
||||||
{% for machine_cluster in core.get_clusters() %}
|
{% for machine_cluster in core.get_clusters() %}
|
||||||
<article class='inline-box' id='{{ machine_cluster.id_machine_cluster }}'>
|
|
||||||
|
{% block machine_cluster_card %}
|
||||||
|
|
||||||
|
{% block card_tag %} <article class='inline-box' id='{{ machine_cluster.id_machine_cluster }}'> {% endblock %}
|
||||||
|
|
||||||
{% set nb_machines = core.get_nb_machines(machine_cluster.id_machine_cluster) %}
|
{% set nb_machines = core.get_nb_machines(machine_cluster.id_machine_cluster) %}
|
||||||
|
|
||||||
<span class='title' style='color: {{ core.theme }}'>{{ machine_cluster.name }}</span>
|
{% block card_title %} <span class='title' style='color: {{ core.theme }}'>{{ machine_cluster.name }}</span> {% endblock %}
|
||||||
{# <span class='link_remove' data-cluster='{{ machine_cluster.id_machine_cluster }}'>{{ core.icon.remove | raw }}</span>
|
|
||||||
|
|
||||||
<span class='link_edit' data-cluster='{{ machine_cluster.id_machine_cluster }}'>{{ core.icon.edit | raw }}</span> #}
|
{% block card_remove %} <span class='link_remove' data-cluster='{{ machine_cluster.id_machine_cluster }}'>{{ core.icon.remove | raw }}</span> {% endblock %}
|
||||||
|
{% block card_edit %} <span class='link_edit' data-cluster='{{ machine_cluster.id_machine_cluster }}'>{{ core.icon.edit | raw }}</span> {% endblock %}
|
||||||
|
|
||||||
|
{% block card_count %}
|
||||||
|
|
||||||
<span class='code'>
|
<span class='code'>
|
||||||
{{ core.icon.device | raw }}
|
{{ core.icon.device | raw }}
|
||||||
<span>{{ nb_machines }} machines</span>
|
<span>{{ nb_machines }} machines</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block card_permission_list %}
|
||||||
|
|
||||||
{% for permission in core.get_permissions() %}
|
{% for permission in core.get_permissions() %}
|
||||||
|
|
||||||
|
{% block card_permission %}
|
||||||
|
|
||||||
<span class='groups'>
|
<span class='groups'>
|
||||||
|
|
||||||
|
{% block card_permission_name %}
|
||||||
|
|
||||||
<span style='border-color: #ddd; background-color: #eee;'>
|
<span style='border-color: #ddd; background-color: #eee;'>
|
||||||
{{ core.permission_translate(permission.name, 'fr') }}
|
{{ core.permission_translate(permission.name, 'fr') }}
|
||||||
<span class='icon-permission'></span>
|
<span class='icon-permission'></span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block auth_user_cluster_list %}
|
||||||
|
|
||||||
<span class='ignore'>
|
<span class='ignore'>
|
||||||
{% for user_cluster in core.get_authed_user_clusters(machine_cluster.id_machine_cluster, permission.id_permission) %}
|
{% for user_cluster in core.get_authed_user_clusters(machine_cluster.id_machine_cluster, permission.id_permission) %}
|
||||||
|
|
||||||
|
{% block auth_user_cluster %}
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
{{ user_cluster.name }}
|
{% block auth_user_cluster_name %} {{ user_cluster.name }} {% endblock %}
|
||||||
<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 class='rem-permission' data-permission='{{ permission.id_permission }}' data-source='{{ user_cluster.id_user_cluster }}' data-target='{{ machine_cluster.id_machine_cluster }}'></span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
<span class='add-permission' data-target='{{ machine_cluster.id_machine_cluster }}' data-permission='{{ permission.id_permission }}'>+</span>
|
<span class='add-permission' data-target='{{ machine_cluster.id_machine_cluster }}' data-permission='{{ permission.id_permission }}'>+</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% 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 %}
|
||||||
|
|
Loading…
Reference in New Issue