Projet

Général

Profil

Télécharger (3,21 ko) Statistiques
| Branche: | Tag: | Révision:

calebasse / calebasse / agenda / templates / agenda / appointment.html @ 859f69a1

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.time.field.required %}class="required"{% endif %}>
9
            <p>
10
           {{ form.time.label_tag }}
11
           {{ form.time }}
12
           {{ form.time.errors }}
13
           </p>
14
           </td>
15
           <td {% if form.duration.field.required %}class="required"{% endif %}>
16
           <p>
17
           {{ form.duration.label_tag }}
18
           {{ form.duration|add_class:"mousewheel"|attr:"data-mousewheel-increment:5" }}
19
           {{ form.duration.errors }}
20
           <div>
21
           {{ form.duration.help_text }}
22
           </div>
23
           </p>
24
           </td>
25
           <td {% if form.date.field.required %}class="required"{% endif %}>
26
           <p class="datepicker">
27
           {{ form.date.label_tag }}
28
           {{ form.date|add_class:"datepicker-date" }}
29
           {{ form.date.errors }}
30
           </p>
31
           </td>
32
       </tr>
33
       <tr>
34
           <td>
35
           <p>
36
           {{ form.ressource.label_tag }}
37
           {{ form.ressource }}
38
           {{ form.ressource.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
           <div id="patient">
53
           {% if object.exception_to and not object.exception_to.canceled %}
54
           {{ object.patient }}
55
           {% else %}
56
           {{ form.patient }}
57
           {{ form.patient.errors }}
58
           {% endif %}
59
           </div>
60
           </td>
61
           <td {% if form.act_type.field.required %}class="required"{% endif %}>
62
           <h4>{{ form.act_type.label_tag }}</h4>
63
           {{ form.act_type }}
64
           {{ form.act_type.errors }}
65
           </td>
66
       </tr>
67
      <tr>
68
        <td colspan="3">
69
          <div id="description">
70
            {{ form.description.label_tag }}
71
            {{ form.description }}
72
            {{ form.description.errors }}
73
          </div>
74
        </td>
75
      </tr>
76
</table>
77

    
78
{% if object.exception_to %}
79
  <hr/>
80
  {% if object.id != object.exception_to.id %}
81
  <p><em>Attention: cet objet est une exception à un rendez-vous périodique; si
82
  vous modifiez ou supprimiez ce rendez-vous périodique, l'exception n'en serait pas
83
  affectée.</em></p>
84
  {% endif %}
85
  <div>Occurence du {{object.exception_date}} d'un rendez-vous périodique
86
    {% if object.exception_to.canceled %}<em>supprimée</em> et initialement prévue{% endif %}
87
    {{ object.exception_to.recurrence_description|lower }}</div>
88
  {% if not object.exception_to.canceled %}
89
  <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>
90
  {% endif %}
91
{% endif %}
(6-6/19)