ynh_extension_meeo/templates/edu_creer_absence.twig

32 lines
1.2 KiB
Twig
Raw Normal View History

2024-07-28 09:14:51 +00:00
<form class="form-horizontal" action="?api/meeo/absence" method="post">
2024-07-28 08:56:33 +00:00
<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">
2024-07-28 09:08:54 +00:00
<input class="form-control" type="datetime-local" id="date_debut_absence" name="date_debut_absence" required/>
2024-07-28 08:56:33 +00:00
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="date_fin_absence">Fin:</label>
<div class="col-sm-10">
2024-07-28 09:08:54 +00:00
<input class="form-control" type="datetime-local" id="date_fin_absence" name="date_fin_absence"/>
2024-07-28 08:56:33 +00:00
</div>
</div>
2024-07-29 16:50:23 +00:00
<div class="form-group">
<label class="control-label col-sm-2" for="justification">Justification:</label>
2024-07-28 08:56:33 +00:00
<div class="col-sm-10">
2024-07-29 16:50:23 +00:00
<input class="form-control" type="text" name="justification"/>
2024-07-28 08:56:33 +00:00
</div>
</div>
<button type="submit" class="btn btn-default">Envoyer</button>
</div></form>