88 lines
2.0 KiB
Twig
88 lines
2.0 KiB
Twig
{% 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 #}
|
|
{% if core.class == 0 %}
|
|
<span><strong>Identifiant</strong></span>
|
|
<span><strong>Nom</strong></span>
|
|
<span><strong>Code RFID</strong></span>
|
|
{# MACHINE HEADER #}
|
|
{% else %}
|
|
<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>
|
|
<span>{{ member.code }}</span>
|
|
<span>
|
|
<input type='checkbox' value='{{ member.id_user }}' data-name='members' id='checkbox_{{ member.id_user }}' {% if member.already %}checked{% endif %}>
|
|
<label for='checkbox_{{ member.id_user }}'></label>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{# MACHINE ENTRIES #}
|
|
{% else %}
|
|
|
|
{% block machine_entry %}
|
|
|
|
<div>
|
|
<span>{{ member.name }}</span>
|
|
<span>
|
|
<input type='checkbox' value='{{ member.id_machine }}' data-name='members' id='checkbox_{{ member.id_machine }}' {% if member.already %}checked{% endif %}>
|
|
<label for='checkbox_{{ member.id_machine }}'></label>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endblock %}
|
|
|
|
</article>
|
|
|
|
{% endblock %}
|