From 45984b4a938c92b3b79bc32b82f907173e46b0d5 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 8 Nov 2017 14:23:07 +0100 Subject: [PATCH] Blocks in view: group.choice.* --- .../view/group/member/choice/main.twig | 119 ++++++++++++------ .../generic/view/group/member/group/main.twig | 32 +++-- 2 files changed, 99 insertions(+), 52 deletions(-) diff --git a/build/generic/view/group/member/choice/main.twig b/build/generic/view/group/member/choice/main.twig index 4679099..fd3bd43 100644 --- a/build/generic/view/group/member/choice/main.twig +++ b/build/generic/view/group/member/choice/main.twig @@ -1,50 +1,87 @@ -Modifier un autre groupe -

+{% block back %} -
- - + Modifier un autre groupe +

-
+{% endblock %} - {# USER HEADER #} - {% if core.class == 0 %} - Identifiant - Nom - Code RFID - {# MACHINE HEADER #} - {% else %} - Nom - {% endif %} - Membre de {{ core.name }} -
+{% block container %} +
- {% for member in core.get_members(core.id_cluster, core.class) %} + {% block hidden %} - {# USER ENTRIES #} - {% if core.class == 0 %} -
- {{ member.username }} - {{ member.firstname }} {{ member.lastname }} - {{ member.code }} - - - - + + -
- {# MACHINE ENTRIES #} - {% else %} -
- {{ member.name }} - - - - + {% endblock %} -
- {% endif %} + {% block header %} - {% endfor %} -
+
+ + {# USER HEADER #} + {% if core.class == 0 %} + Identifiant + Nom + Code RFID + {# MACHINE HEADER #} + {% else %} + Nom + {% endif %} + Membre de {{ core.name }} + +
+ + {% endblock %} + + {% block member_list %} + + {% for member in core.get_members(core.id_cluster, core.class) %} + + {% block member_entry %} + + {# USER ENTRIES #} + {% if core.class == 0 %} + {% block user_entry %} + +
+ {{ member.username }} + {{ member.firstname }} {{ member.lastname }} + {{ member.code }} + + + + + +
+ + {% endblock %} + + {# MACHINE ENTRIES #} + {% else %} + + {% block machine_entry %} + +
+ {{ member.name }} + + + + + +
+ + {% endblock %} + + {% endif %} + + {% endblock %} + + {% endfor %} + + {% endblock %} + +
+ +{% endblock %} diff --git a/build/generic/view/group/member/group/main.twig b/build/generic/view/group/member/group/main.twig index 800ed3b..3bbd941 100644 --- a/build/generic/view/group/member/group/main.twig +++ b/build/generic/view/group/member/group/main.twig @@ -1,16 +1,26 @@ -
- + - + {% for user_cluster in core.get_clusters(0) %} + + {% endfor %} + + {% for machine_cluster in core.get_clusters(1) %} + + {% endfor %} + + + + {% endblock %} + + {% block submit %} + + + + {% endblock %} -