ynh_extension_meeo/templates/edu_eleves.twig

29 lines
1.1 KiB
Twig
Raw Normal View History

2024-07-17 15:23:33 +00:00
<div class="container">
2024-07-17 09:31:56 +00:00
<div class="row">
2024-07-17 15:23:33 +00:00
<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>
2024-07-17 09:31:56 +00:00
</div>
<form action="?api/meeo/eleves" method="post" enctype="application/json">
2024-07-17 15:23:33 +00:00
{% for eleve in eleves|sort %}
<div class="row form-group" id="{{ eleve.getId() }}" name="{{ eleve.getId() }}">
<div class="col-sm-8">{{ eleve.getNom() }}</div>
2024-07-17 15:23:33 +00:00
<div class="col-sm-3">
<select id="{{ eleve.getId() }}_classe" name="{{ eleve.getId() }}_classe" class="form-control">
2024-08-02 17:19:00 +00:00
{% for id, classe in classes %}
<option value="{{id}}" {% if eleve.classe == id %}selected{% endif %} >{{classe}}</option>
2024-07-17 15:23:33 +00:00
{% 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=""/>
2024-07-17 15:23:33 +00:00
</div>
</div>
2024-07-17 09:31:56 +00:00
{% endfor %}
2024-07-17 15:23:33 +00:00
<div class="row">
<div class="col-sm-12 text-center">
<button class="btn btn-default">Valider</button>
</div>
</div>
</form>
2024-07-17 09:31:56 +00:00
</div>