ynh_extension_meeo/templates/edu_eleves.twig
2024-08-02 19:19:00 +02:00

29 lines
No EOL
1.1 KiB
Twig

<div class="container">
<div class="row">
<div class="col-sm-8"><h2>Nom</h5></div>
<div class="col-sm-3"><h2>Classe</h2></div>
<div class="col-sm-1 text-center"><h2><span class="glyphicon glyphicon-trash"></span></h2></div>
</div>
<form action="?api/meeo/eleves" method="post" enctype="application/json">
{% for eleve in eleves|sort %}
<div class="row form-group" id="{{ eleve.getId() }}" name="{{ eleve.getId() }}">
<div class="col-sm-8">{{ eleve.getNom() }}</div>
<div class="col-sm-3">
<select id="{{ eleve.getId() }}_classe" name="{{ eleve.getId() }}_classe" class="form-control">
{% for id, classe in classes %}
<option value="{{id}}" {% if eleve.classe == id %}selected{% endif %} >{{classe}}</option>
{% endfor %}
</select>
</div>
<div class="col-sm-1 text-center">
<input id="{{eleve.getId()}}_del" name="{{eleve.getId()}}_del" class="form-check-input" type="checkbox" value=""/>
</div>
</div>
{% endfor %}
<div class="row">
<div class="col-sm-12 text-center">
<button class="btn btn-default">Valider</button>
</div>
</div>
</form>
</div>