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 @@
{% block back %}
<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 %}
<input type='hidden' id='members-member-idcluster' value='{{ core.id_cluster }}'>
<input type='hidden' id='members-member-class' value='{{ core.class }}'>
{% endblock %}
{% block header %}
<div>
{# USER HEADER #}
@ -17,13 +30,21 @@
<span><strong>Nom</strong></span>
{% endif %}
<span><strong>Membre de <u>{{ core.name }}</u></strong></span>
</div>
{% 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 %}
<div>
<span>{{ member.username }}</span>
<span>{{ member.firstname }} {{ member.lastname }}</span>
@ -34,8 +55,14 @@
</span>
</div>
{% endblock %}
{# MACHINE ENTRIES #}
{% else %}
{% block machine_entry %}
<div>
<span>{{ member.name }}</span>
<span>
@ -44,7 +71,17 @@
</span>
</div>
{% endblock %}
{% endif %}
{% endblock %}
{% endfor %}
{% 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'>
<option value='.' selected disabled>Groupe à modifier</option>
@ -12,5 +15,12 @@
</select>
{% endblock %}
{% block submit %}
<button id='choose-cluster'>Modifier la composition</button>
{% endblock %}
</form>