Projet

Général

Profil

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

calebasse / calebasse / agenda / templates / agenda / appointment.html @ dd986559

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
           {% if object.exception_to and not object.exception_to.canceled %}
53
           {{ object.patient }}
54
           {% else %}
55
           {{ form.patient }}
56
           {{ form.patient.errors }}
57
           {% endif %}
58
           </td>
59
           <td {% if form.act_type.field.required %}class="required"{% endif %}>
60
           <h4>{{ form.act_type.label_tag }}</h4>
61
           {{ form.act_type }}
62
           {{ form.act_type.errors }}
63
           </td>
64
       </tr>
65
      <tr>
66
        <td colspan="3">
67
          <div id="description">
68
            {{ form.description.label_tag }}
69
            {{ form.description }}
70
            {{ form.description.errors }}
71
          </div>
72
        </td>
73
      </tr>
74
</table>
75

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