Lines 7-16
Link Here
|
7 |
[% PROCESS 'i18n.inc' %] |
7 |
[% PROCESS 'i18n.inc' %] |
8 |
[% SET footerjs = 1 %] |
8 |
[% SET footerjs = 1 %] |
9 |
[% INCLUDE 'doc-head-open.inc' %] |
9 |
[% INCLUDE 'doc-head-open.inc' %] |
10 |
[% PROCESS "patron-search.inc" %] |
|
|
11 |
[% SET libraries = Branches.all %] |
12 |
[% SET categories = Categories.all.unblessed %] |
13 |
[% SET columns = ['name', 'cardnumber', 'dateofbirth', 'category', 'branch', 'address', 'phone'] %] |
14 |
<title>[% FILTER collapse %] |
10 |
<title>[% FILTER collapse %] |
15 |
[% t("Notices management") | html %] › |
11 |
[% t("Notices management") | html %] › |
16 |
[% t("Tools") | html %] › |
12 |
[% t("Tools") | html %] › |
Lines 50-58
Link Here
|
50 |
|
46 |
|
51 |
<h1>Notices management</h1> |
47 |
<h1>Notices management</h1> |
52 |
|
48 |
|
53 |
<div class="dialog message">Printing a notice will mark it as sent.</div> |
49 |
<div class="page-section bg-warning">Printing a notice will mark it as sent.</div> |
|
|
50 |
|
51 |
[% IF notices.count == 0 %] |
52 |
|
53 |
<div class="page-section bg-info"> |
54 |
No sent notices were found with those search parameters. |
55 |
</div> |
56 |
|
57 |
[% ELSE %] |
54 |
|
58 |
|
55 |
[% IF notices && notices.count > 0 %] |
|
|
56 |
<div class="page-section"> |
59 |
<div class="page-section"> |
57 |
<span id="checkbox_actions"><a href="#" class="select_all"><i class="fa fa-check"></i> Select all</a> | <a href="#" class="clear_all"><i class="fa fa-remove"></i> Clear all</a></span> |
60 |
<span id="checkbox_actions"><a href="#" class="select_all"><i class="fa fa-check"></i> Select all</a> | <a href="#" class="clear_all"><i class="fa fa-remove"></i> Clear all</a></span> |
58 |
<form id="print_multiple" action="/cgi-bin/koha/tools/print_notice.pl" method="post" target="_blank"> |
61 |
<form id="print_multiple" action="/cgi-bin/koha/tools/print_notice.pl" method="post" target="_blank"> |
Lines 92-121
Link Here
|
92 |
</form> |
95 |
</form> |
93 |
</div> |
96 |
</div> |
94 |
|
97 |
|
95 |
[% ELSE %] |
|
|
96 |
|
97 |
Use the search form on the left to find sent notices, or go directly to a patron's notices. |
98 |
|
99 |
[% WRAPPER tabs id= "notices_patronsearch" %] |
100 |
[% WRAPPER tabs_nav %] |
101 |
[% WRAPPER tab_item tabname= "notices_patronsearch_pane" bt_active= 1 %] <span>Patrons</span> [% END %] |
102 |
[% END %] |
103 |
[% WRAPPER tab_panels %] |
104 |
[% WRAPPER tab_panel tabname="notices_patronsearch_pane" bt_active= 1 %] |
105 |
[% PROCESS patron_search_filters_simple %] |
106 |
[% PROCESS patron_search_table table_id => 'table_borrowers', open_on_row_click => 1 %] |
107 |
[% END %] |
108 |
[% END %] |
109 |
[% END %] |
110 |
|
111 |
[% IF notices && notices.count == 0 %] |
112 |
|
113 |
<div class="dialog message"> |
114 |
No sent notices were found with those search parameters. |
115 |
</div> |
116 |
|
117 |
[% END %] |
118 |
|
119 |
[% END %] |
98 |
[% END %] |
120 |
|
99 |
|
121 |
</main> |
100 |
</main> |
Lines 124-132
Link Here
|
124 |
<div class="col-md-2 order-md-1 order-sm-1"> |
103 |
<div class="col-md-2 order-md-1 order-sm-1"> |
125 |
<aside> |
104 |
<aside> |
126 |
<fieldset class="sidebar brief"> |
105 |
<fieldset class="sidebar brief"> |
127 |
<form id="notices-search" action="/cgi-bin/koha/tools/notices.pl" method="post"> |
106 |
<form id="notices-search" action="/cgi-bin/koha/tools/notices.pl" method="get"> |
128 |
[% INCLUDE 'csrf-token.inc' %] |
|
|
129 |
<input type="hidden" name="op" value="cud-search"> |
130 |
<h3>Search filters</h3> |
107 |
<h3>Search filters</h3> |
131 |
<ol> |
108 |
<ol> |
132 |
<li> |
109 |
<li> |
Lines 248-254
Link Here
|
248 |
[% INCLUDE 'datatables.inc' %] |
225 |
[% INCLUDE 'datatables.inc' %] |
249 |
|
226 |
|
250 |
<script> |
227 |
<script> |
251 |
table_settings = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]; |
|
|
252 |
$(document).ready(function() { |
228 |
$(document).ready(function() { |
253 |
$("#notices").dataTable($.extend(true, {}, dataTablesDefaults, { |
229 |
$("#notices").dataTable($.extend(true, {}, dataTablesDefaults, { |
254 |
"aoColumnDefs": [ |
230 |
"aoColumnDefs": [ |
Lines 273-285
Link Here
|
273 |
$("#noticeModal .modal-body").html(""); |
249 |
$("#noticeModal .modal-body").html(""); |
274 |
}); |
250 |
}); |
275 |
|
251 |
|
276 |
$("#notices_patronsearch").on("submit", filter); |
|
|
277 |
[% UNLESS notices %] |
278 |
[% IF ( Koha.Preference('PatronAutoComplete') ) %] |
279 |
patron_autocomplete($(".search_patron_filter"), { 'link-to': 'notices' }); |
280 |
[% END %] |
281 |
[% END %] |
282 |
|
283 |
$("#print_multiple_button").click(function(e){ |
252 |
$("#print_multiple_button").click(function(e){ |
284 |
var selected_notices = $("#print_multiple").find("input[name='message_ids']:checked"); |
253 |
var selected_notices = $("#print_multiple").find("input[name='message_ids']:checked"); |
285 |
if ( selected_notices.length == 0 ) { |
254 |
if ( selected_notices.length == 0 ) { |
Lines 304-312
Link Here
|
304 |
}); |
273 |
}); |
305 |
}); |
274 |
}); |
306 |
</script> |
275 |
</script> |
307 |
|
|
|
308 |
[% SET search_results_block_id = 'notices_patronsearch_pane_panel' %] [%# adjusting variable for patron-search.inc %] |
309 |
[% PROCESS patron_search_js table_id => 'table_borrowers', categories => categories, libraries => libraries, columns => columns, open_on_row_click => 1, on_click_url => '/cgi-bin/koha/members/notices.pl?', redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/members/notices.pl?', redirect_if_attribute_equal => 'cardnumber' %] |
310 |
[% END %] |
276 |
[% END %] |
311 |
|
277 |
|
312 |
[% INCLUDE 'intranet-bottom.inc' %] |
278 |
[% INCLUDE 'intranet-bottom.inc' %] |