Révision dce0454a
Ajouté par Serghei Mihai il y a presque 10 ans
calebasse/agenda/templates/agenda/agendas-therapeutes.html | ||
---|---|---|
5 | 5 |
{% block appbar %} |
6 | 6 |
<h2>Tous les agendas des intervenants du {{ service_name }} - {{ date|date:"DATE_FORMAT"|title }}</h2> |
7 | 7 |
<a href="..">Retourner à l'agenda</a> |
8 |
<button id='print-button-therapeutes'>Imprimer</button> |
|
9 | 8 |
{% endblock %} |
10 | 9 |
|
11 | 10 |
|
12 | 11 |
{% block agenda-content %} |
13 |
<button id="uncheck-all" type="button">Tout décocher</button> |
|
14 |
<button id="check-all" type="button" style="display: none">Tout cocher</button> |
|
15 |
|
|
12 |
<div id="activity" class="screen-only"> |
|
13 |
<span class="actions screen-only"><button id='print-button-therapeutes-activity' class="icon-print screen-only">Imprimer</button></span> |
|
14 |
<br class="clear" /> |
|
15 |
<span class="header"><strong>{{ service_name }}:</strong> {{ date|date:"DATE_FORMAT"|title }}</span> |
|
16 |
<h3>Activité du personnel</h4> |
|
17 |
<table> |
|
18 |
<thead> |
|
19 |
<tr> |
|
20 |
<th>Nom</th><th>Arrivée</th><th>Premier rendez-vous</th> |
|
21 |
<th>Dernier rendez-vous</th><th>Départ</th><th>Absences</th> |
|
22 |
</tr> |
|
23 |
</thead> |
|
24 |
<tbody> |
|
25 |
{% for worker_agenda in workers_agenda %} |
|
26 |
<tr> |
|
27 |
<td>{{ worker_agenda.worker.first_name}} <span class="lastname">{{ worker_agenda.worker.last_name }}</span></td> |
|
28 |
<td>{{ worker_agenda.activity.arrival }}</td><td>{{ worker_agenda.activity.first_appointment }}</td> |
|
29 |
<td>{{ worker_agenda.activity.last_appointment }}</td><td>{{ worker_agenda.activity.departure }}</td> |
|
30 |
<td>{% for absence in worker_agenda.activity.absences %} |
|
31 |
{{ absence }}<br /> |
|
32 |
{% endfor %} |
|
33 |
</td> |
|
34 |
</tr> |
|
35 |
{% endfor %} |
|
36 |
</tbody> |
|
37 |
</table> |
|
38 |
</div> |
|
39 |
<br class="clear" /> |
|
40 |
<span class="actions screen-only"> |
|
41 |
<button id="uncheck-all" type="button" class="icon-uncheck screen-only">Tout décocher</button> |
|
42 |
<button id="check-all" type="button" style="display: none" class="icon-check screen-only">Tout cocher</button> |
|
43 |
<button id='print-button-therapeutes' class="icon-print screen-only">Imprimer</button> |
|
44 |
</span> |
|
16 | 45 |
{% for worker_agenda in workers_agenda %} |
17 | 46 |
{% if worker_agenda.appointments %} |
18 | 47 |
<div class="worker-agenda"> |
... | ... | |
88 | 117 |
update_page_break(); |
89 | 118 |
|
90 | 119 |
$('button#print-button-therapeutes').click(function() { |
120 |
$('div#activity').addClass('screen-only'); |
|
91 | 121 |
$.each($(".printable"), function(k, v) { |
92 | 122 |
if ($(v).is(':checked')) { |
93 | 123 |
$(v).parents('.worker-agenda').removeClass('screen-only'); |
... | ... | |
99 | 129 |
window.print(); |
100 | 130 |
}); |
101 | 131 |
|
132 |
$('button#print-button-therapeutes-activity').click(function() { |
|
133 |
$('div#activity').removeClass('screen-only'); |
|
134 |
$.each($('.content div:not(#activity)'), function(k, v) { |
|
135 |
$(v).addClass('screen-only'); |
|
136 |
}); |
|
137 |
update_page_break(); |
|
138 |
window.print(); |
|
139 |
}); |
|
140 |
|
|
102 | 141 |
$('#uncheck-all').on('click', function () { |
103 | 142 |
$('.printable').attr('checked', false); |
104 | 143 |
$('.printable').trigger('change'); |
Formats disponibles : Unified diff
agenda: display a summary of service activity
Closes #2735