calebasse/calebasse/agenda/templates/agenda/agendas-therapeutes.html @ e5150d7d
| ec83d7ba | Frédéric Péters | {% extends "agenda/base.html" %}
|
|
{% block body-class %}{{ block.super }} no-left-column{% endblock %}
|
|||
{% block appbar %}
|
|||
| 4a9a4001 | Mikaël Ates | <h2>Tous les agendas des intervenants du {{ service_name }} - {{ date|date:"DATE_FORMAT"|title }}</h2>
|
|
| ec83d7ba | Frédéric Péters | <a href="..">Retourner à l'agenda</a>
|
|
<button id='print-button'>Imprimer</button>
|
|||
{% endblock %}
|
|||
| 2fd808bf | Benjamin Dauvergne | ||
| ec83d7ba | Frédéric Péters | {% block agenda-content %}
|
|
| 2fd808bf | Benjamin Dauvergne | <button id="uncheck-all" type="button">Tout décocher</button>
|
|
<button id="check-all" type="button" style="display: none">Tout cocher</button>
|
|||
| ec83d7ba | Frédéric Péters | {% for worker_agenda in workers_agenda %}
|
|
{% if worker_agenda.appointments %}
|
|||
<div class="worker-agenda">
|
|||
| 34467a71 | Jérôme Schneider | <h2>
|
|
<strong>{{ service_name }}</strong> - Planning de {{ worker_agenda.worker.first_name }} <span class="lastname">{{ worker_agenda.worker.last_name }}</span>
|
|||
<input type="checkbox" class="printable" checked>
|
|||
</h2>
|
|||
<h3>{{ date|date:"DATE_FORMAT"|title }}</h3>
|
|||
| ec83d7ba | Frédéric Péters | ||
| 34467a71 | Jérôme Schneider | <!--<span class="remarque">Remarque :</span>-->
|
|
| ec83d7ba | Frédéric Péters | ||
| 34467a71 | Jérôme Schneider | <table>
|
|
<thead>
|
|||
| 92b6c980 | Mikaël Ates | <tr> <th>Heure</th> <th>Durée</th> <th>N°</th> <th>Libellé</th><th>Présence</th>
|
|
| 34467a71 | Jérôme Schneider | <th>Absence</th>
|
|
<th>Type d'acte</th> <th>Commentaire</th> <th>Intervenants</th></tr>
|
|||
</thead>
|
|||
<tbody>
|
|||
{% for appointment in worker_agenda.appointments %}
|
|||
<tr data-event-id="{{ appointment.event_id }}">
|
|||
<td class="col-time">{{ appointment.begin_hour }}</td>
|
|||
<td class="col-duration">{% if appointment.length %}{{ appointment.length }}min{% endif %}</td>
|
|||
<td class="col-record-id">
|
|||
{% if appointment.patient_record_id %}
|
|||
{% if appointment.patient_record_paper_id %}
|
|||
{{ appointment.patient_record_paper_id }}
|
|||
{% else %}
|
|||
Pas de numéro papier.
|
|||
{% endif %}
|
|||
{% endif %}
|
|||
</td>
|
|||
<td> {% if appointment.title %}{{ appointment.title }}{% endif %}</td>
|
|||
<td/>
|
|||
| 67de2724 | Mikaël Ates | <td> {% if appointment.act_absence %}<strong>{{ appointment.act_absence }}</strong>{% endif %}</td>
|
|
<td> {% if appointment.act_type %}{{ appointment.act_type }}{% endif %}</td>
|
|||
<td> {% if appointment.description %}{{ appointment.description }}{% endif %}</td>
|
|||
<td>
|
|||
{% if appointment.workers and appointment.workers|length > 10 %}
|
|||
{{ appointment.workers|length }} intervenants
|
|||
{% else %}
|
|||
{% for worker in appointment.workers %}
|
|||
<span class="lastname">{{ worker.last_name }}</span> {{ worker.first_name }}<br/>
|
|||
{% endfor %}
|
|||
{% endif %}
|
|||
</td>
|
|||
</tr>
|
|||
{% endfor %}
|
|||
</tbody>
|
|||
</table>
|
|||
</div> <!-- .worker-agenda -->
|
|||
| 34467a71 | Jérôme Schneider | ||
| 67de2724 | Mikaël Ates | {% endif %}
|
|
{% endfor %}
|
|||
| 34467a71 | Jérôme Schneider | <script>
|
|
$(function () {
|
|||
/* Control page break on last printed page */
|
|||
function update_page_break() {
|
|||
$('.pagebreak').css('page-break-after', 'always');
|
|||
| 681cca46 | Mikaël Ates | $('.pagebreak').not('.screen-only').last().css('page-break-before', 'avoid');
|
|
| 34467a71 | Jérôme Schneider | }
|
|
update_page_break();
|
|||
$('.printable').on('change', function () {
|
|||
if ($(this).is(':checked')) {
|
|||
$(this).parents('.worker-agenda').removeClass('screen-only');
|
|||
} else {
|
|||
$(this).parents('.worker-agenda').addClass('screen-only');
|
|||
}
|
|||
update_page_break();
|
|||
});
|
|||
$('#uncheck-all').on('click', function () {
|
|||
$('.printable').attr('checked', false);
|
|||
$('.printable').trigger('change');
|
|||
$('#uncheck-all').hide();
|
|||
$('#check-all').show();
|
|||
update_page_break();
|
|||
});
|
|||
$('#check-all').on('click', function () {
|
|||
$('.printable').attr('checked', true);
|
|||
$('.printable').trigger('change');
|
|||
$('#check-all').hide();
|
|||
$('#uncheck-all').show();
|
|||
update_page_break();
|
|||
});
|
|||
});
|
|||
</script>
|
|||
| ec83d7ba | Frédéric Péters | ||
| 67de2724 | Mikaël Ates | <button id='print-button' class='screen-only'>Imprimer</button>
|
|
{% endblock %}
|