ynh_extension_meeo/templates/edu_creer_absence.twig
2024-08-01 18:25:02 +02:00

31 lines
1.2 KiB
Twig

<form class="form-horizontal" action="?api/meeo/absence" method="post">
<div class="form-group">
<label class="control-label col-sm-2" for="eleve">Eleve:</label>
<div class="col-sm-10">
<select class="form-control" id="eleve" name="eleve" required>
{% for eleve in eleves %}
<option value="{{ eleve.getId() }}">{{ eleve.getNom() }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="date_debut_absence">Debut:</label>
<div class="col-sm-10">
<input class="form-control" type="datetime-local" id="date_debut_absence" name="date_debut_absence" required/>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="date_fin_absence">Fin:</label>
<div class="col-sm-10">
<input class="form-control" type="datetime-local" id="date_fin_absence" name="date_fin_absence"/>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="justification">Justification:</label>
<div class="col-sm-10">
<input class="form-control" type="text" name="justification"/>
</div>
</div>
<button type="submit" class="btn btn-default">Envoyer</button>
</div></form>