Blocks in view: group.choice.*

This commit is contained in:
xdrm-brackets 2017-11-08 14:23:07 +01:00
parent 8ac65dc399
commit 45984b4a93
2 changed files with 99 additions and 52 deletions

View File

@ -1,10 +1,23 @@
<span style='text-align:center; color: #666; text-decoration: underline; cursor: pointer;' id='members-change-group'>Modifier un autre groupe</span> {% block back %}
<p></p>
<span style='text-align:center; color: #666; text-decoration: underline; cursor: pointer;' id='members-change-group'>Modifier un autre groupe</span>
<p></p>
{% endblock %}
{% block container %}
<article class='check-table'>
{% block hidden %}
<article class='check-table'>
<input type='hidden' id='members-member-idcluster' value='{{ core.id_cluster }}'> <input type='hidden' id='members-member-idcluster' value='{{ core.id_cluster }}'>
<input type='hidden' id='members-member-class' value='{{ core.class }}'> <input type='hidden' id='members-member-class' value='{{ core.class }}'>
{% endblock %}
{% block header %}
<div> <div>
{# USER HEADER #} {# USER HEADER #}
@ -17,13 +30,21 @@
<span><strong>Nom</strong></span> <span><strong>Nom</strong></span>
{% endif %} {% endif %}
<span><strong>Membre de <u>{{ core.name }}</u></strong></span> <span><strong>Membre de <u>{{ core.name }}</u></strong></span>
</div> </div>
{% endblock %}
{% block member_list %}
{% for member in core.get_members(core.id_cluster, core.class) %} {% for member in core.get_members(core.id_cluster, core.class) %}
{% block member_entry %}
{# USER ENTRIES #} {# USER ENTRIES #}
{% if core.class == 0 %} {% if core.class == 0 %}
{% block user_entry %}
<div> <div>
<span>{{ member.username }}</span> <span>{{ member.username }}</span>
<span>{{ member.firstname }} {{ member.lastname }}</span> <span>{{ member.firstname }} {{ member.lastname }}</span>
@ -34,8 +55,14 @@
</span> </span>
</div> </div>
{% endblock %}
{# MACHINE ENTRIES #} {# MACHINE ENTRIES #}
{% else %} {% else %}
{% block machine_entry %}
<div> <div>
<span>{{ member.name }}</span> <span>{{ member.name }}</span>
<span> <span>
@ -44,7 +71,17 @@
</span> </span>
</div> </div>
{% endblock %}
{% endif %} {% endif %}
{% endblock %}
{% endfor %} {% endfor %}
</article>
{% endblock %}
</article>
{% endblock %}

View File

@ -1,4 +1,7 @@
<form class='neutral' action='' method='POST' id='choose-cluster'> {% block form_tag %} <form class='neutral' action='' method='POST' id='choose-cluster'> {% endblock %}
{% block input %}
<select data-name='cluster'> <select data-name='cluster'>
<option value='.' selected disabled>Groupe à modifier</option> <option value='.' selected disabled>Groupe à modifier</option>
@ -12,5 +15,12 @@
</select> </select>
{% endblock %}
{% block submit %}
<button id='choose-cluster'>Modifier la composition</button> <button id='choose-cluster'>Modifier la composition</button>
{% endblock %}
</form> </form>