51 lines
1.5 KiB
Twig
51 lines
1.5 KiB
Twig
<a style='text-align:center; color: #666;' href='/groups/members/'>Modifier un autre groupe</a>
|
|
<p></p>
|
|
|
|
<article class='check-table'>
|
|
<input type='hidden' id='members-member-idcluster' value='{{ p_id_cluster }}'>
|
|
<input type='hidden' id='members-member-class' value='{{ p_class }}'>
|
|
|
|
<div>
|
|
|
|
{# USER HEADER #}
|
|
{% if p_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>{{ p_name }}</u></strong></span>
|
|
</div>
|
|
|
|
|
|
{% for member in f_members(p_id_cluster, p_class) %}
|
|
|
|
{# USER ENTRIES #}
|
|
{% if p_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>
|