1
|
{% load widget_tweaks %}
|
2
|
{{ form.non_field_errors }}
|
3
|
{{ form.start_datetime }}
|
4
|
{{ form.start_datetime.errors }}
|
5
|
<table id="new-appointment-table">
|
6
|
<tr>
|
7
|
<td {% if form.date.field.required %}class="required"{% endif %}>
|
8
|
<p class="datepicker">
|
9
|
{{ form.date.label_tag }}
|
10
|
{{ form.date|add_class:"datepicker-date" }}
|
11
|
{{ form.date.errors }}
|
12
|
</p>
|
13
|
</td>
|
14
|
<td {% if form.time.field.required %}class="required"{% endif %}>
|
15
|
<p>
|
16
|
{{ form.time.label_tag }}
|
17
|
{{ form.time }}
|
18
|
{{ form.time.errors }}
|
19
|
</p>
|
20
|
</td>
|
21
|
<td {% if form.duration.field.required %}class="required"{% endif %}>
|
22
|
<p>
|
23
|
{{ form.duration.label_tag }}
|
24
|
{{ form.duration|add_class:"mousewheel"|attr:"data-mousewheel-increment:5" }}
|
25
|
{{ form.duration.errors }}
|
26
|
<div>
|
27
|
{{ form.duration.help_text }}
|
28
|
</div>
|
29
|
</p>
|
30
|
</td>
|
31
|
</tr>
|
32
|
<tr>
|
33
|
<td>
|
34
|
<p>
|
35
|
{{ form.room.label_tag }}
|
36
|
{{ form.room }}
|
37
|
{{ form.room.errors }}
|
38
|
</p>
|
39
|
</td>
|
40
|
</tr>
|
41
|
<tr>
|
42
|
<td {% if form.participants.field.required %}class="required"{% endif %}>
|
43
|
<h4>{{ form.participants.label_tag }}</h4>
|
44
|
<div id="intervenants">
|
45
|
{{ form.participants }}
|
46
|
{{ form.participants.errors }}
|
47
|
</div>
|
48
|
</td>
|
49
|
<td {% if form.patient.field.required %}class="required"{% endif %}>
|
50
|
<h4>{{ form.patient.label_tag }}</h4>
|
51
|
{{ form.patient }}
|
52
|
{{ form.patient.errors }}
|
53
|
</td>
|
54
|
<td {% if form.act_type.field.required %}class="required"{% endif %}>
|
55
|
<h4>{{ form.act_type.label_tag }}</h4>
|
56
|
{{ form.act_type }}
|
57
|
{{ form.act_type.errors }}
|
58
|
</td>
|
59
|
</tr>
|
60
|
</table>
|
61
|
|
62
|
{% if object.exception_to %}
|
63
|
<hr/>
|
64
|
<div>Occurence du {{object.exception_date}} de la série d'evènements {{ object.exception_to.recurrence_description|lower }}</div>
|
65
|
<button type="button" data-id="{{ object.exception_to.id }}" class="update-periodic-rdv">Éditer le rendez-vous périodique</button>
|
66
|
{% endif %}
|