Project

General

Profile

Download (2.99 KB) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / agenda / templates / agenda / appointment.html @ 67de2724

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 id="new-appointment-table">
7
       <tr>
8
           <td {% if form.date.field.required %}class="required"{% endif %}>
9
           <p class="datepicker">
10
           {{ form.date.label_tag }}
11
           {{ form.date|add_class:"datepicker-date" }}
12
           {{ form.date.errors }}
13
           </p>
14
           </td>
15
           <td {% if form.time.field.required %}class="required"{% endif %}>
16
            <p>
17
           {{ form.time.label_tag }}
18
           {{ form.time }}
19
           {{ form.time.errors }}
20
           </p>
21
           </td>
22
           <td {% if form.duration.field.required %}class="required"{% endif %}>
23
           <p>
24
           {{ form.duration.label_tag }}
25
           {{ form.duration|add_class:"mousewheel"|attr:"data-mousewheel-increment:5" }}
26
           {{ form.duration.errors }}
27
           <div>
28
           {{ form.duration.help_text }}
29
           </div>
30
           </p>
31
           </td>
32
       </tr>
33
       <tr>
34
           <td>
35
           <p>
36
           {{ form.room.label_tag }}
37
           {{ form.room }}
38
           {{ form.room.errors }}
39
           </p>
40
           </td>
41
       </tr>
42
       <tr>
43
           <td {% if form.participants.field.required %}class="required"{% endif %}>
44
           <h4>{{ form.participants.label_tag }}</h4>
45
           <div id="intervenants">
46
           {{ form.participants }}
47
           {{ form.participants.errors }}
48
           </div>
49
           </td>
50
           <td {% if form.patient.field.required %}class="required"{% endif %}>
51
           <h4>{{ form.patient.label_tag }}</h4>
52
           {{ form.patient }}
53
           {{ form.patient.errors }}
54
           </td>
55
           <td {% if form.act_type.field.required %}class="required"{% endif %}>
56
           <h4>{{ form.act_type.label_tag }}</h4>
57
           {{ form.act_type }}
58
           {{ form.act_type.errors }}
59
           </td>
60
       </tr>
61
      <tr>
62
        <td colspan="3">
63
          <div id="description">
64
            {{ form.description.label_tag }}
65
            {{ form.description }}
66
            {{ form.description.errors }}
67
          </div>
68
        </td>
69
      </tr>
70
</table>
71

    
72
{% if object.exception_to %}
73
  <hr/>
74
  {% if object.id != object.exception_to.id %}
75
  <p><em>Attention: cette objet est une exception à un rendez-vous périodique; si
76
  vous modifiez ou supprimiez ce rendez-vous périodique, l'exception n'en serait pas
77
  affecté.</em></p>
78
  {% endif %}
79
  <div>Occurence du {{object.exception_date}} d'un rendez-vous périodique
80
    {% if object.exception_to.canceled %}<em>supprimé</em> et initialement prévu{% endif %}
81
    {{ object.exception_to.recurrence_description|lower }}</div>
82
  {% if not object.exception_to.canceled %}
83
  <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-rdv">Éditer le rendez-vous périodique</button>
84
  {% endif %}
85
{% endif %}
(5-5/18)