1
|
{% load widget_tweaks %}
|
2
|
{% load url from future %}
|
3
|
{{ form.non_field_errors }}
|
4
|
{{ form.start_datetime }}
|
5
|
{{ form.start_datetime.errors }}
|
6
|
<table>
|
7
|
<tr>
|
8
|
<td {% if form.event_type.field.required %}class="required"{% endif %}>
|
9
|
<p>
|
10
|
{{ form.event_type.label_tag }}
|
11
|
{{ form.event_type }}
|
12
|
{{ form.event_type.errors }}
|
13
|
</p>
|
14
|
</td>
|
15
|
<td {% if form.title.field.required %}class="required"{% endif %}>
|
16
|
<p>
|
17
|
{{ form.title.label_tag }}
|
18
|
{{ form.title }}
|
19
|
{{ form.title.errors }}
|
20
|
</p>
|
21
|
</td>
|
22
|
<td {% if form.ressource.field.required %}class="required"{% endif %}>
|
23
|
<p>
|
24
|
{{ form.ressource.label_tag }}
|
25
|
{{ form.ressource }}
|
26
|
</p>
|
27
|
</td>
|
28
|
</tr>
|
29
|
|
30
|
<tr>
|
31
|
<td {% if form.date.field.required %}class="required"{% endif %}>
|
32
|
<p>
|
33
|
{{ form.date.label_tag }}
|
34
|
{{ form.date|add_class:"datepicker-date" }}
|
35
|
{{ form.date.errors }}
|
36
|
</p>
|
37
|
</td>
|
38
|
<td {% if form.time.field.required %}class="required"{% endif %}>
|
39
|
<p>
|
40
|
{{ form.time.label_tag }}
|
41
|
{{ form.time }}
|
42
|
{{ form.time.errors }}
|
43
|
</p>
|
44
|
</td>
|
45
|
<td {% if form.duration.field.required %}class="required"{% endif %}>
|
46
|
<p>
|
47
|
{{ form.duration.label_tag }}
|
48
|
{{ form.duration|add_class:"mousewheel"|attr:"data-mousewheel-increment:5" }}
|
49
|
{{ form.duration.errors }}
|
50
|
<div>
|
51
|
{{ form.duration.help_text }}
|
52
|
</div>
|
53
|
</p>
|
54
|
</td>
|
55
|
</tr>
|
56
|
|
57
|
<tr>
|
58
|
<td {% if form.participants.field.required %}class="required"{% endif %}>
|
59
|
{{ form.participants.label_tag }}
|
60
|
<div id="intervenants">
|
61
|
{{ form.participants }}
|
62
|
{{ form.participants.errors }}
|
63
|
</div>
|
64
|
</td>
|
65
|
<td {% if form.services.field.required %}class="required"{% endif %}>
|
66
|
<div id="services">
|
67
|
{{ form.services.label_tag }}
|
68
|
{{ form.services }}
|
69
|
{{ form.services.errors }}
|
70
|
</div>
|
71
|
</td>
|
72
|
</tr>
|
73
|
<tr>
|
74
|
<td colspan="3">
|
75
|
<div id="description">
|
76
|
{{ form.description.label_tag }}
|
77
|
{{ form.description }}
|
78
|
{{ form.description.errors }}
|
79
|
</div>
|
80
|
</td>
|
81
|
</tr>
|
82
|
</table>
|
83
|
|
84
|
{% if object.exception_to %}
|
85
|
<hr/>
|
86
|
{% if object.id != object.exception_to.id %}
|
87
|
<p><em>Attention: cet objet est une exception à un évènement périodique; si
|
88
|
vous modifiez ou supprimiez cet évènement périodique, l'exception n'en serait pas
|
89
|
affectée.</em></p>
|
90
|
{% endif %}
|
91
|
<div>Occurence du {{object.exception_date}} d'un évènement périodique
|
92
|
{% if object.exception_to.canceled %}<em>supprimée</em> et initialement prévue{% endif %}
|
93
|
{{ object.exception_to.recurrence_description|lower }}</div>
|
94
|
{% if not object.exception_to.canceled %}
|
95
|
<button type="button" data-delete-url="{% url 'delete-event' service=service date=date pk=object.exception_to.pk %}" data-id="{{ object.exception_to.id }}" class="update-periodic-event">Éditer l'évènement périodique</button>
|
96
|
{% endif %}
|
97
|
{% endif %}
|