1
|
{% load widget_tweaks %}
|
2
|
<table id="new-appointment-table">
|
3
|
<tr>
|
4
|
<td {% if form.date.field.required %}class="required"{% endif %}>
|
5
|
<p class="datepicker">
|
6
|
{{ form.date.label_tag }}
|
7
|
{{ form.date|add_class:"datepicker-date" }}
|
8
|
{{ form.date.errors }}
|
9
|
</p>
|
10
|
</td>
|
11
|
<td {% if form.time.field.required %}class="required"{% endif %}>
|
12
|
<p>
|
13
|
{{ form.time.label_tag }}
|
14
|
{{ form.time }}
|
15
|
{{ form.time.errors }}
|
16
|
</p>
|
17
|
</td>
|
18
|
<td {% if form.duration.field.required %}class="required"{% endif %}>
|
19
|
<p>
|
20
|
{{ form.duration.label_tag }}
|
21
|
{{ form.duration|add_class:"mousewheel"|attr:"data-mousewheel-increment:5" }}
|
22
|
{{ form.duration.errors }}
|
23
|
<div>
|
24
|
{{ form.duration.help_text }}
|
25
|
</div>
|
26
|
</p>
|
27
|
</td>
|
28
|
</tr>
|
29
|
<tr>
|
30
|
<td {% if form.duration.field.required %}class="required"{% endif %}>
|
31
|
<p>
|
32
|
{{ form.room.label_tag }}
|
33
|
{{ form.room }}
|
34
|
{{ form.room.errors }}
|
35
|
</p>
|
36
|
</td>
|
37
|
</tr>
|
38
|
<tr>
|
39
|
<td {% if form.participants.field.required %}class="required"{% endif %}>
|
40
|
<h4>{{ form.participants.label_tag }}</h4>
|
41
|
<div id="intervenants">
|
42
|
{{ form.participants }}
|
43
|
{{ form.participants.errors }}
|
44
|
</div>
|
45
|
</td>
|
46
|
<td {% if form.patient.field.required %}class="required"{% endif %}>
|
47
|
<h4>{{ form.patient.label_tag }}</h4>
|
48
|
{{ form.patient }}
|
49
|
{{ form.patient.errors }}
|
50
|
</td>
|
51
|
<td {% if form.act_type.field.required %}class="required"{% endif %}>
|
52
|
<h4>{{ form.act_type.label_tag }}</h4>
|
53
|
{{ form.act_type }}
|
54
|
{{ form.act_type.errors }}
|
55
|
</td>
|
56
|
</tr>
|
57
|
</table>
|
58
|
|
59
|
<hr/>
|
60
|
<!-- <button>Configurer la périodicité</button> -->
|