Revision d3882260
Added by Jérôme Schneider over 10 years ago
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'>Imprimer</button> |
|
8 |
<button id='print-button-therapeutes'>Imprimer</button>
|
|
9 | 9 |
{% endblock %} |
10 | 10 |
|
11 | 11 |
|
... | ... | |
74 | 74 |
$('.pagebreak').not('.screen-only').last().css('page-break-before', 'avoid'); |
75 | 75 |
} |
76 | 76 |
update_page_break(); |
77 |
$('.printable').on('change', function () { |
|
78 |
if ($(this).is(':checked')) { |
|
79 |
$(this).parents('.worker-agenda').removeClass('screen-only'); |
|
80 |
} else { |
|
81 |
$(this).parents('.worker-agenda').addClass('screen-only'); |
|
77 |
|
|
78 |
$('button#print-button-therapeutes').click(function() { |
|
79 |
$.each($(".printable"), function(k, v) { |
|
80 |
if ($(v).is(':checked')) { |
|
81 |
$(v).parents('.worker-agenda').removeClass('screen-only'); |
|
82 |
} else { |
|
83 |
$(v).parents('.worker-agenda').addClass('screen-only'); |
|
82 | 84 |
} |
83 |
update_page_break(); |
|
84 |
}); |
|
85 |
}); |
|
86 |
update_page_break(); |
|
87 |
window.print(); |
|
88 |
}); |
|
89 |
|
|
85 | 90 |
$('#uncheck-all').on('click', function () { |
86 | 91 |
$('.printable').attr('checked', false); |
87 | 92 |
$('.printable').trigger('change'); |
Also available in: Unified diff
agenda: print only checked therapeutes agenda
Fixes #5127