Projet

Général

Profil

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

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

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_is_billed %}<p><em>Le rendez-vous périodique a un acte qui est facturé ce qui empêche de le modifier à l'exception de la description, de la ressource et des dates de début et de fin.</em></p>{% endif %}
7
   {% if object.is_recurring and object.one_act_already_billed %}<p><em>Le rendez-vous périodique a un acte qui a déjà été facturé 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_is_billed %}
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_is_billed %}
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
           {{ form.date|add_class:"datepicker-date" }}
38
           {{ form.date.errors }}
39
           </p>
40
           </td>
41
       </tr>
42
       <tr>
43
           <td>
44
           <p>
45
           {{ form.ressource.label_tag }}
46
           {{ form.ressource }}
47
           {{ form.ressource.errors }}
48
           </p>
49
           </td>
50
       </tr>
51
       <tr>
52
           <td {% if form.participants.field.required %}class="required"{% endif %}>
53
           <h4>{{ form.participants.label_tag }}</h4>
54
           <div id="intervenants">
55
           {% if object.is_recurring and object.one_act_is_billed %}
56
           <ul>{% for p in object.participants.all %}<li>{{ p }}</li>{% endfor %}</ul>
57
           <input id="id_participants" name="participants" value="|{% for p in object.participants.all %}{{ p.id }}|{% endfor %}" type="hidden"/>
58
           {% else %}
59
           {{ form.participants }}
60
           {% endif %}
61
           {{ form.participants.errors }}
62
           </div>
63
           </td>
64
           <td {% if form.patient.field.required %}class="required"{% endif %}>
65
           <h4>{{ form.patient.label_tag }}</h4>
66
           <div id="patient">
67
           {% if object.is_recurring or object.exception_to or object.act.already_billed %}
68
           {{ object.patient }}
69
           {{ form.patient.as_hidden }}
70
           {% else %}
71
           {{ form.patient }}
72
           {{ form.patient.errors }}
73
           {% endif %}
74
           </div>
75
           </td>
76
           <td {% if form.act_type.field.required %}class="required"{% endif %}>
77
           <h4>{{ form.act_type.label_tag }}</h4>
78
           {% if object.is_recurring and object.one_act_is_billed %}
79
           {{ object.act_type }}
80
           {{ form.act_type.as_hidden }}
81
           {% else %}
82
           {{ form.act_type }}
83
           {% endif %}
84
           {{ form.act_type.errors }}
85
           </td>
86
       </tr>
87
      <tr>
88
        <td colspan="3">
89
          <div id="description">
90
            {{ form.description.label_tag }}
91
            {{ form.description }}
92
            {{ form.description.errors }}
93
          </div>
94
        </td>
95
      </tr>
96
</table>
97

    
98
{% if object.exception_to %}
99
  <hr/>
100
  {% if object.id != object.exception_to.id %}
101
  <p><em>Attention: cet objet est une exception à un rendez-vous périodique; si
102
  vous modifiez ou supprimez le rendez-vous périodique, l'exception n'en sera pas
103
  affectée.</em></p>
104
  {% endif %}
105

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

    
110
  {% if not object.exception_to.canceled %}
111
  <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_already_billed="{{ object.exception_to.one_act_already_billed }}"  class="update-periodic-rdv">Éditer le rendez-vous périodique</button></p>
112
  {% endif %}
113

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