calebasse/calebasse/agenda/templates/agenda/ajax-worker-tab.html @ e5150d7d
| b306fcbb | Frédéric Péters | {% load url from future %}
|
|
| 969df571 | Mikaël Ates | {% load apptags %}
|
|
| 37674910 | Benjamin Dauvergne | <p><a href="{% url 'periodic-events-for-worker' service=service date=date worker_id=worker_agenda.worker.id %}">Rendez-vous périodiques</a></p>
|
|
| 433b67bb | Benjamin Dauvergne | <div {% if appointment.event_id %}data-event-id="{{ appointment.event_id }}"{% endif %}>
|
|
| b306fcbb | Frédéric Péters | {% for appointment in worker_agenda.appointments %}
|
|
<h3 class="{{ appointment.type }} {% if appointment.act_absence %}act-absence{% endif %} appointment"
|
|||
{% if appointment.act_absence %}title="{{appointment.act_absence}}"{% endif %}>
|
|||
<span class="hour">{{ appointment.begin_hour }}</span>
|
|||
| 969df571 | Mikaël Ates | <span class="length">{% if appointment.length %}{% if appointment.length|str_length_lt:3 %} {% endif %}{{ appointment.length }} mn{% endif %}</span>
|
|
<span class="title">{% if appointment.title %}{{ appointment.title }}{% endif %}
|
|||
{% if appointment.patient.paper_id %} {{ appointment.patient.paper_id }} {% endif %}</span>
|
|||
| e6b125bd | Mikaël Ates | <span class="participants">
|
|
{% if appointment.len_workers > 4 %}
|
|||
{% if appointment.workers_absent %}<span class="absent" title="Au moins un intervenant est absent">{% endif %}
|
|||
{{ appointment.len_workers }} inter.
|
|||
{% if appointment.workers_absent %}</span>{% endif %}
|
|||
{% else %}
|
|||
{% if appointment.workers %}
|
|||
{% for worker in appointment.workers %}
|
|||
{% if worker in appointment.workers_absent %}<span class="absent" title="Absent">{% endif %}
|
|||
{{ worker.worker.initials }}{% if not forloop.last %} {% endif %}
|
|||
{% if worker in appointment.workers_absent %}</span>{% endif %}
|
|||
{% endfor %}
|
|||
{% endif %}
|
|||
{% endif %}
|
|||
</span>
|
|||
| 969df571 | Mikaël Ates | <span class="act_type">{% if appointment.act_type %}{{ appointment.act_type|trunc_act_type }}{% endif %}</span>
|
|
| dd986559 | Serghei MIHAI | <span class="ressource">{% if appointment.ressource %}{{ appointment.ressource }}{% endif %}</span>
|
|
| b306fcbb | Frédéric Péters | <span class="right">
|
|
| e6b125bd | Mikaël Ates | {% if appointment.workers_absent %}
|
|
<span title="Au moins un intervenant est absent" class="icon-warning-sign absent"></span>
|
|||
{% endif %}
|
|||
| b306fcbb | Frédéric Péters | {% for service_name in appointment.other_services_names %}
|
|
<span class="box {{ service_name }}" title="{{ service_name }}"></span>
|
|||
{% endfor %}
|
|||
{% if appointment.description %}
|
|||
<span title="Un commentaire existe" class="icon-comment"></span>
|
|||
{% endif %}
|
|||
{% if appointment.event_id %}
|
|||
| 20cc4488 | Jérôme Schneider | {% if appointment.is_recurrent %} R {% endif %}
|
|
| 4952abd0 | Jérôme Schneider | {% if appointment.patient.confidential %}
|
|
<span title="Dossier confidentiel" class="icon-lock"></span>
|
|||
{% endif %}
|
|||
| d0029ef7 | Jérôme Schneider | {% if appointment.convocation_sent %}
|
|
<button title="Courrier envoyé" class="icon-envelope">
|
|||
{% endif %}
|
|||
| 7821d610 | Mikaël Ates | {% if service in appointment.services_names or not appointment.services_names %}
|
|
| 49ef7554 | Jérôme Schneider | {% if appointment.patient_record_id %}
|
|
| bd92d55a | Mikaël Ates | {% if not appointment.is_billed %}
|
|
| 49ef7554 | Jérôme Schneider | <button title="Éditer un rendez-vous" class="edit-appointment icon-edit" data-event-id="{{ appointment.event_id }}"></button>
|
|
| bd92d55a | Mikaël Ates | {% endif %}
|
|
| 49ef7554 | Jérôme Schneider | {% else %}
|
|
<button title="Éditer un événement" class="edit-event icon-edit" data-event-id="{{ appointment.event_id }}">
|
|||
{% endif %}
|
|||
| 17861d43 | Jérôme Schneider | {% if not appointment.is_billed %}
|
|
<button class="remove-appointment icon-remove-sign" title="Supprimer un rendez-vous" data-url="{% url 'delete-occurrence' service=service date=date pk=appointment.event_id %}" data-rdv="{{ appointment.title }}"></button>
|
|||
{% endif %}
|
|||
| d0f605e5 | Mikaël Ates | {% endif %}
|
|
| b306fcbb | Frédéric Péters | {% endif %}
|
|
</span>
|
|||
</h3>
|
|||
<div>
|
|||
{% if appointment.type == 'free' %}
|
|||
<button class='newrdv' data-url="{% url 'nouveau-rdv' service=service date=date %}" data-hour="{{ appointment.begin_hour }}">Nouveau rendez-vous patient</button>
|
|||
<button class='newevent' data-url="{% url 'new-event' service=service date=date %}" data-hour="{{ appointment.begin_hour }}">Nouvel événement</button>
|
|||
{% endif %}
|
|||
{% if appointment.event_id %}
|
|||
| 10796965 | Mikaël Ates | {% if appointment.workers %}
|
|
<p class="workers">
|
|||
Intervenants :
|
|||
{% for worker in appointment.workers %}
|
|||
| e6b125bd | Mikaël Ates | {% if worker in appointment.workers_absent %}<span class="absent" title="Absent">{% endif %}
|
|
| 10796965 | Mikaël Ates | {{ worker.first_name }} <span class="lastname">{{ worker.last_name }}</span>{% if forloop.last %}.{% else %}, {% endif %}
|
|
| e6b125bd | Mikaël Ates | {% if worker in appointment.workers_absent %}</span>{% endif %}
|
|
| 10796965 | Mikaël Ates | {% endfor %}
|
|
</p>
|
|||
| 344fbdb6 | Mikaël Ates | {% endif %}
|
|
| b306fcbb | Frédéric Péters | {% endif %}
|
|
{% if appointment.patient_record_id %}
|
|||
<p class="phones">
|
|||
| 896dc77c | Mikaël Ates | {% if appointment.patient.mobile %}
|
|
<span title="{{ appointment.patient.first_name }} {{ appointment.patient.last_name|upper }} (Patient - Perso)" class="icon-user-space">
|
|||
{{ appointment.patient.mobile }}
|
|||
</span>
|
|||
{% endif %}
|
|||
{% if appointment.patient.phone %}
|
|||
<span title="{{ appointment.patient.first_name }} {{ appointment.patient.last_name|upper }} (Patient - Pro)" class="icon-user-space">
|
|||
{{ appointment.patient.phone }}
|
|||
</span>
|
|||
{% endif %}
|
|||
| b306fcbb | Frédéric Péters | {% for address in appointment.patient.addresses.all %}
|
|
| 896dc77c | Mikaël Ates | {% if address.place_of_life %}
|
|
{% if address.phone %}<span title="{{ address.number }} {{ address.street }} {{ address.zip_code }} {{ address.city }}" class="icon-home-space">{{ address.phone }}</span>{% endif %}
|
|||
| b306fcbb | Frédéric Péters | {% for contact in address.patientcontact_set.all %}
|
|
| 896dc77c | Mikaël Ates | {% if contact.id != appointment.patient.id %}
|
|
{% if contact.mobile %}<span title="{{ contact.first_name }} {{ contact.last_name|upper }} (Perso)" class="icon-user-space">{{ contact.mobile }}</span>{% endif %}
|
|||
{% if contact.phone %}<span title="{{ contact.first_name }} {{ contact.last_name|upper }} (Pro)" class="icon-user-space">{{ contact.phone }}</span>{% endif %}
|
|||
{% endif %}
|
|||
| b306fcbb | Frédéric Péters | {% endfor %}
|
|
{% endif %}
|
|||
{% endfor %}
|
|||
</p>
|
|||
<a href="/{{ service }}/dossiers/{{ appointment.patient_record_id }}/view" target="_blank">Dossier patient</a> -
|
|||
| fe04204b | Mikaël Ates | <a href="/{{ service }}/dossiers/{{ appointment.patient_record_id }}/view#tab=5" target="_blank">Prochains rendez-vous</a>
|
|
{% if mail %}- <a href="#" class="generate-mail-btn" data-dossier-id="{{ appointment.patient_record_id }}" data-date="{{date|date:"Y-m-d"}}" data-event-id="{{ appointment.event_id }}" data-next-url="{{ request.get_full_path }}">Courrier</a>{% endif %}
|
|||
| b306fcbb | Frédéric Péters | {% endif %}
|
|
{% if appointment.validation %}
|
|||
| 67ee30a8 | Mikaël Ates | <div><span>{% if appointment.validation.1 %}<strong>{{ appointment.validation.2 }}</strong> {% if appointment.validation.0.is_billed %}<strong>Acte facturé</strong>{% endif %}
|
|
| b306fcbb | Frédéric Péters | {% else %}
|
|
Non pointé.
|
|||
{% endif %}
|
|||
</span>
|
|||
{% if not appointment.validation.0.validation_locked and appointment.validation.3 %}
|
|||
<form method="post" class="inline-form">
|
|||
{% csrf_token %}
|
|||
| 433b67bb | Benjamin Dauvergne | <input type="hidden" value="{{appointment.event_id}}" name="event-id">
|
|
<select name="act_state">
|
|||
| cdf3d9de | Mikaël Ates | {% for state_name, display_state_name in appointment.validation.3 %}
|
|
| b306fcbb | Frédéric Péters | <option value="{{ state_name }}" {% if state_name == appointment.validation.1.state_name %}selected{% endif %}>{{ display_state_name }}</option>
|
|
{% endfor %}
|
|||
</select>
|
|||
| 80a1fa62 | Frédéric Péters | <button>Modifier</button>
|
|
| b306fcbb | Frédéric Péters | </form>
|
|
{% endif %}
|
|||
| 10796965 | Mikaël Ates | </div>
|
|
{% endif %}
|
|||
{% if appointment.event_id %}
|
|||
| 72f229a9 | Jérôme Schneider | <div class="tabs-worker-{{ worker_agenda.worker.id }} textedit">
|
|
| 10796965 | Mikaël Ates | <span></span>
|
|
{% if service in appointment.services_names or not appointment.services_names %}
|
|||
| 88abfb2a | Jérôme Schneider | <textarea>{{ appointment.description }}</textarea>
|
|
| f08b409c | Jérôme Schneider | <button disabled="disabled" data-event-id="{{ appointment.event_id }}" data-date="{{ date|date:"Y-m-d" }}" {% if appointment.act_id %}data-act-id="{{ appointment.act_id }}{% endif %}">✔</button>
|
|
| 10796965 | Mikaël Ates | {% else %}
|
|
<p>{{ appointment.description }}</p>
|
|||
{% endif %}
|
|||
</div>
|
|||
{% else %}
|
|||
{% if appointment.description %}
|
|||
| 88abfb2a | Jérôme Schneider | <p>{{ appointment.description }}</p>
|
|
| 10796965 | Mikaël Ates | {% endif %}
|
|
{% endif %}
|
|||
| b306fcbb | Frédéric Péters | </div>
|
|
{% endfor %}
|
|||
</div>
|