Projet

Général

Profil

Télécharger (4,73 ko) Statistiques
| Branche: | Tag: | Révision:

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

1
{% load widget_tweaks %}
2
{% load url from future %}
3
{{ form.non_field_errors }}
4
{{ form.start_datetime }}
5
{{ form.start_datetime.errors }}
6
   {% if object.is_recurring and object.one_act_not_new %}<p><em>Le rendez-vous périodique a un acte qui est pointé ce qui empêche de le modifier à l'exception de la description, de la ressource et de la date de fin.</em></p>{% endif %}
7
   {% if object.is_recurring and object.one_act_not_new %}<p><em>Le rendez-vous périodique a un acte qui est pointé ce qui empêche de le supprimer.</em></p>{% endif %}
8
   <table id="new-appointment-table">
9
       <tr>
10
           <td {% if form.time.field.required %}class="required"{% endif %}>
11
            <p>
12
           {{ form.time.label_tag }}
13
           {% if object.is_recurring and object.one_act_not_new %}
14
           {{ object.time }}
15
           {{ form.time.as_hidden }}
16
           {% else %}
17
           {{ form.time }}
18
           {% endif %}
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
           {% if object.is_recurring and object.one_act_not_new %}
26
           {{ object.duration }}
27
           {{ form.duration.as_hidden }}
28
           {% else %}
29
           {{ form.duration }}
30
           {% endif %}
31
           {{ form.duration.errors }}
32
           </p>
33
           </td>
34
           <td {% if form.date.field.required %}class="required"{% endif %}>
35
           <p class="datepicker">
36
           {{ form.date.label_tag }}
37
           {% if object.is_recurring and object.one_act_not_new %}
38
           {{ object.date }}
39
           {{ form.date.as_hidden }}
40
           {% else %}
41
           {{ form.date|add_class:"datepicker-date" }}
42
           {% endif %}
43
           {{ form.date.errors }}
44
           </p>
45
           </td>
46
       </tr>
47
       <tr>
48
           <td>
49
           <p>
50
           {{ form.ressource.label_tag }}
51
           {{ form.ressource }}
52
           {{ form.ressource.errors }}
53
           </p>
54
           </td>
55
       </tr>
56
       <tr>
57
           <td {% if form.participants.field.required %}class="required"{% endif %}>
58
           <h4>{{ form.participants.label_tag }}</h4>
59
           <div id="intervenants">
60
           {% if object.is_recurring and object.one_act_not_new %}
61
           <ul>{% for p in object.participants.all %}<li>{{ p }}</li>{% endfor %}</ul>
62
           <input id="id_participants" name="participants" value="|{% for p in object.participants.all %}{{ p.id }}|{% endfor %}" type="hidden"/>
63
           {% else %}
64
           {{ form.participants }}
65
           {% endif %}
66
           {{ form.participants.errors }}
67
           </div>
68
           </td>
69
           <td {% if form.patient.field.required %}class="required"{% endif %}>
70
           <h4>{{ form.patient.label_tag }}</h4>
71
           <div id="patient">
72
           {% if object.is_recurring or object.exception_to or object.act.already_billed %}
73
           {{ object.patient }}
74
           {{ form.patient.as_hidden }}
75
           {% else %}
76
           {{ form.patient }}
77
           {{ form.patient.errors }}
78
           {% endif %}
79
           </div>
80
           </td>
81
           <td {% if form.act_type.field.required %}class="required"{% endif %}>
82
           <h4>{{ form.act_type.label_tag }}</h4>
83
           {% if object.is_recurring and object.one_act_not_new %}
84
           {{ object.act_type }}
85
           {{ form.act_type.as_hidden }}
86
           {% else %}
87
           {{ form.act_type }}
88
           {% endif %}
89
           {{ form.act_type.errors }}
90
           </td>
91
       </tr>
92
      <tr>
93
        <td colspan="3">
94
          <div id="description">
95
            {{ form.description.label_tag }}
96
            {{ form.description }}
97
            {{ form.description.errors }}
98
          </div>
99
        </td>
100
      </tr>
101
</table>
102

    
103
{% if object.exception_to %}
104
  <hr/>
105
  {% if object.id != object.exception_to.id %}
106
  <p><em><strong>Attention: cette occurrence est une exception au rendez-vous périodique</strong>; si vous modifiez l'heure, la durée, le commentaire, la ressource, les participants ou le type d'acte du rendez-vous périodique, les exceptions ne sont pas modifiées.</em></p>
107
  {% endif %}
108

    
109
  <p>Occurence du {{object.exception_date}} d'un rendez-vous périodique
110
    {% if object.exception_to.canceled %}<em>supprimé</em> et initialement prévu{% endif %}
111
    {{ object.exception_to.recurrence_description|lower }}</p>
112

    
113
  {% if not object.exception_to.canceled %}
114
  <p><button type="button" data-delete-url="{% url 'delete-event' service=service date=date pk=object.exception_to.pk %}" data-id="{{ object.exception_to.id }}" data-one_act_not_new="{{ object.exception_to.one_act_not_new }}"  class="update-periodic-rdv">Éditer le rendez-vous périodique</button></p>
115
  {% endif %}
116

    
117
{% endif %}
(6-6/18)