2012-10-24 18:40:17 +02:00
{% load widget_tweaks %}
2013-01-11 17:35:43 +01:00
{% load url from future %}
2013-01-02 03:27:33 +01:00
{{ form.non_field_errors }}
2013-01-02 03:25:12 +01:00
{{ form.start_datetime }}
{{ form.start_datetime.errors }}
2014-09-26 18:39:14 +02:00
{% 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 %}
{% 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 %}
2012-12-14 19:09:11 +01:00
< table id = "new-appointment-table" >
< tr >
2012-12-21 16:33:34 +01:00
< td { % if form . time . field . required % } class = "required" { % endif % } >
2012-12-14 19:09:11 +01:00
< p >
{{ form.time.label_tag }}
2014-09-26 18:39:14 +02:00
{% if object.is_recurring and object.one_act_not_new %}
2014-08-01 00:08:01 +02:00
{{ object.time }}
{{ form.time.as_hidden }}
{% else %}
2012-12-14 19:09:11 +01:00
{{ form.time }}
2014-08-01 00:08:01 +02:00
{% endif %}
2012-12-14 19:09:11 +01:00
{{ form.time.errors }}
< / p >
< / td >
2012-12-21 16:33:34 +01:00
< td { % if form . duration . field . required % } class = "required" { % endif % } >
2012-12-14 19:09:11 +01:00
< p >
{{ form.duration.label_tag }}
2014-09-26 18:39:14 +02:00
{% if object.is_recurring and object.one_act_not_new %}
2014-08-01 00:08:01 +02:00
{{ object.duration }}
{{ form.duration.as_hidden }}
{% else %}
{{ form.duration }}
{% endif %}
2012-12-14 19:09:11 +01:00
{{ form.duration.errors }}
< / p >
< / td >
2013-06-13 14:02:22 +02:00
< td { % if form . date . field . required % } class = "required" { % endif % } >
< p class = "datepicker" >
{{ form.date.label_tag }}
2014-09-26 18:39:14 +02:00
{% if object.is_recurring and object.one_act_not_new %}
{{ object.date }}
{{ form.date.as_hidden }}
{% else %}
2013-06-13 14:02:22 +02:00
{{ form.date|add_class:"datepicker-date" }}
2014-09-26 18:39:14 +02:00
{% endif %}
2013-06-13 14:02:22 +02:00
{{ form.date.errors }}
< / p >
< / td >
2012-12-14 19:09:11 +01:00
< / tr >
< tr >
2013-01-04 09:29:52 +01:00
< td >
2012-12-14 19:09:11 +01:00
< p >
2014-04-08 11:07:58 +02:00
{{ form.ressource.label_tag }}
{{ form.ressource }}
{{ form.ressource.errors }}
2012-12-14 19:09:11 +01:00
< / p >
< / td >
< / tr >
< tr >
2012-12-21 16:33:34 +01:00
< td { % if form . participants . field . required % } class = "required" { % endif % } >
2012-12-14 19:09:11 +01:00
< h4 > {{ form.participants.label_tag }}< / h4 >
< div id = "intervenants" >
2014-09-26 18:39:14 +02:00
{% if object.is_recurring and object.one_act_not_new %}
2014-08-01 00:08:01 +02:00
< ul > {% for p in object.participants.all %}< li > {{ p }}< / li > {% endfor %}< / ul >
< input id = "id_participants" name = "participants" value = "|{% for p in object.participants.all %}{{ p.id }}|{% endfor %}" type = "hidden" / >
{% else %}
2012-12-14 19:09:11 +01:00
{{ form.participants }}
2014-08-01 00:08:01 +02:00
{% endif %}
2012-12-14 19:09:11 +01:00
{{ form.participants.errors }}
< / div >
< / td >
2014-05-13 18:02:46 +02:00
< td { % if form . patient . field . required % } class = "required" { % endif % } >
< h4 > {{ form.patient.label_tag }}< / h4 >
< div id = "patient" >
2014-08-01 00:08:01 +02:00
{% if object.is_recurring or object.exception_to or object.act.already_billed %}
2014-05-13 18:02:46 +02:00
{{ object.patient }}
2014-08-01 00:08:01 +02:00
{{ form.patient.as_hidden }}
2014-05-13 18:02:46 +02:00
{% else %}
{{ form.patient }}
{{ form.patient.errors }}
{% endif %}
2014-05-12 15:15:54 +02:00
< / div >
2012-12-14 19:09:11 +01:00
< / td >
2012-12-21 16:33:34 +01:00
< td { % if form . act_type . field . required % } class = "required" { % endif % } >
2012-12-14 19:09:11 +01:00
< h4 > {{ form.act_type.label_tag }}< / h4 >
2014-09-26 18:39:14 +02:00
{% if object.is_recurring and object.one_act_not_new %}
2014-08-01 00:08:01 +02:00
{{ object.act_type }}
{{ form.act_type.as_hidden }}
{% else %}
2012-12-14 19:09:11 +01:00
{{ form.act_type }}
2014-08-01 00:08:01 +02:00
{% endif %}
2012-12-14 19:09:11 +01:00
{{ form.act_type.errors }}
< / td >
< / tr >
2013-01-11 10:31:50 +01:00
< tr >
2013-01-11 17:35:43 +01:00
< td colspan = "3" >
2013-01-11 10:31:50 +01:00
< div id = "description" >
{{ form.description.label_tag }}
{{ form.description }}
{{ form.description.errors }}
< / div >
2013-01-11 10:43:41 +01:00
< / td >
2013-01-11 10:31:50 +01:00
< / tr >
2013-01-11 10:43:41 +01:00
< / table >
2012-10-24 18:40:17 +02:00
2013-01-11 10:43:41 +01:00
{% if object.exception_to %}
< hr / >
2013-01-11 17:47:22 +01:00
{% if object.id != object.exception_to.id %}
2014-10-03 15:36:37 +02:00
< 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 >
2013-01-11 17:47:22 +01:00
{% endif %}
2014-08-01 00:08:01 +02:00
< p > Occurence du {{object.exception_date}} d'un rendez-vous périodique
{% if object.exception_to.canceled %}< em > supprimé< / em > et initialement prévu{% endif %}
{{ object.exception_to.recurrence_description|lower }}< / p >
2013-01-11 17:47:22 +01:00
{% if not object.exception_to.canceled %}
2014-09-26 18:39:14 +02:00
< 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 >
2013-01-11 17:47:22 +01:00
{% endif %}
2014-08-01 00:08:01 +02:00
2013-01-11 10:43:41 +01:00
{% endif %}