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
|
<!-- <hr/>-->
|
63
|
<!-- <table id="new-appointment-table">-->
|
64
|
<!-- <tr>-->
|
65
|
<!-- <td {% if form.recurrence_periodicity.field.required %}class="required"{% endif %}>-->
|
66
|
<!-- <p>-->
|
67
|
<!-- {{ form.recurrence_periodicity.label_tag }}-->
|
68
|
<!-- {{ form.recurrence_periodicity }}-->
|
69
|
<!-- {{ form.recurrence_periodicity.errors }}-->
|
70
|
<!-- </p>-->
|
71
|
<!-- </td>-->
|
72
|
<!-- <td {% if form.recurrence_end_date.field.required %}class="required"{% endif %}>-->
|
73
|
<!-- <p class="datepicker">-->
|
74
|
<!-- {{ form.recurrence_end_date.label_tag }}-->
|
75
|
<!-- {{ form.recurrence_end_date|add_class:"datepicker-date" }}-->
|
76
|
<!-- {{ form.recurrence_end_date.errors }}-->
|
77
|
<!-- </p>-->
|
78
|
<!-- </td>-->
|
79
|
<!-- </tr>-->
|
80
|
<!-- </table>-->
|
81
|
<!-- <button>Configurer la périodicité</button> -->
|