51 lines
1.6 KiB
Twig
51 lines
1.6 KiB
Twig
<span style='text-align:center; color: #666; text-decoration: underline; cursor: pointer;' id='members-change-group'>Modifier un autre groupe</span>
|
|
<p></p>
|
|
|
|
<article class='check-table'>
|
|
<input type='hidden' id='members-member-idcluster' value='{{ core.id_cluster }}'>
|
|
<input type='hidden' id='members-member-class' value='{{ core.class }}'>
|
|
|
|
<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>
|
|
|
|
|
|
{% for member in core.get_members(core.id_cluster, core.class) %}
|
|
|
|
{# USER ENTRIES #}
|
|
{% if core.class == 0 %}
|
|
<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>
|
|
{# MACHINE ENTRIES #}
|
|
{% else %}
|
|
<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>
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
</article>
|