1
|
<form>
|
2
|
{% csrf_token %}
|
3
|
{% if form %}
|
4
|
<table>
|
5
|
<tr><td colspan=2>{{ form.non_field_errors }}</td></tr>
|
6
|
<tr>
|
7
|
<th>Date début</th><th>Date fin</th>
|
8
|
</tr>
|
9
|
<tr>
|
10
|
<td id="start" data-before-selector="#end" class="datepicker" data-number-of-months="2">
|
11
|
{{ form.start_date }} {{ form.start_date.errors }}
|
12
|
</td>
|
13
|
<td id="end" data-after-selector="#start" class="datepicker" data-number-of-months="2">
|
14
|
{{ form.end_date }} {{ form.end_date.errors }}
|
15
|
</td>
|
16
|
</tr>
|
17
|
<tr>
|
18
|
<th>Heure début</th><th>Heure fin</th>
|
19
|
</tr>
|
20
|
<tr>
|
21
|
<td>{{ form.start_time }} {{ form.start_time.errors }}</td>
|
22
|
<td>{{ form.end_time }} {{ form.end_time.errors }}</td>
|
23
|
</tr>
|
24
|
<tr>
|
25
|
<th colspan=2>Service</th>
|
26
|
</tr>
|
27
|
<tr id="services">
|
28
|
<td colspan=2>{{ form.services }} {{ form.services.errors }}</td>
|
29
|
</tr>
|
30
|
<tr>
|
31
|
<th>Type</<th><th>Commentaire</th>
|
32
|
</tr>
|
33
|
<tr>
|
34
|
<td>{{ form.holiday_type }} {{ form.holiday_type.errors }}</td>
|
35
|
<td>{{ form.comment }} {{ form.comment.errors }}</td>
|
36
|
</tr>
|
37
|
</table>
|
38
|
{% else %}
|
39
|
Etez-vous sur de vouloir supprimer cette absence?
|
40
|
{% endif %}
|
41
|
</form>
|