Lines 114-129
Link Here
|
114 |
<form method="post" action="/cgi-bin/koha/circ/overdue.pl"> |
114 |
<form method="post" action="/cgi-bin/koha/circ/overdue.pl"> |
115 |
<fieldset class="brief"> |
115 |
<fieldset class="brief"> |
116 |
<h4>Filter on:</h4> |
116 |
<h4>Filter on:</h4> |
117 |
<fieldset><legend>Date due:</legend> |
117 |
<fieldset><legend>Date due:</legend> |
118 |
<ol> |
118 |
<ol> |
119 |
<li><label for="from">From:</label> |
119 |
<li class="radio"> |
120 |
<input type="text" id="from" name="dateduefrom" size="10" value="[% filters.dateduefrom | $KohaDates %]" class="datepickerfrom" /> |
120 |
<label for="showall">Show any items currently checked out:</label> |
121 |
</li> |
121 |
[% IF ( showall ) %] |
122 |
<li> |
122 |
<input type="checkbox" id="showall" name="showall" value="show" checked="checked" /> |
123 |
<label for="to">To:</label> |
123 |
[% ELSE %] |
124 |
<input type="text" id="to" name="datedueto" size="10" value="[% filters.datedueto | $KohaDates %]" class="datepickerto" /> |
124 |
<input type="checkbox" id="showall" name="showall" value="show" /> |
125 |
</li> |
125 |
[% END %] |
126 |
</ol></fieldset> |
126 |
</li> |
|
|
127 |
|
128 |
<li class="date_due_filter"> |
129 |
<label for="from">From:</label> |
130 |
<input type="text" id="from" name="dateduefrom" size="10" value="[% filters.dateduefrom | $KohaDates %]" class="datepickerfrom" /> |
131 |
</li> |
132 |
<li class="date_due_filter"> |
133 |
<label for="to">To:</label> |
134 |
<input type="text" id="to" name="datedueto" size="10" value="[% filters.datedueto | $KohaDates %]" class="datepickerto" /> |
135 |
</li> |
136 |
</ol> |
137 |
</fieldset> |
127 |
<ol> |
138 |
<ol> |
128 |
<li><label>Name or cardnumber:</label><input type="text" name="borname" value="[% filters.borname | html %]" /></li> |
139 |
<li><label>Name or cardnumber:</label><input type="text" name="borname" value="[% filters.borname | html %]" /></li> |
129 |
<li><label>Patron category:</label><select name="borcat" id="borcat"><option value="">Any</option> |
140 |
<li><label>Patron category:</label><select name="borcat" id="borcat"><option value="">Any</option> |
Lines 132-137
Link Here
|
132 |
[% END %] |
143 |
[% END %] |
133 |
</select> |
144 |
</select> |
134 |
</li> |
145 |
</li> |
|
|
146 |
|
135 |
<li><label>Patron flags:</label> |
147 |
<li><label>Patron flags:</label> |
136 |
<select name="borflag" size="1" id="borflag"> |
148 |
<select name="borflag" size="1" id="borflag"> |
137 |
<option value="">None</option> |
149 |
<option value="">None</option> |
Lines 202-214
Link Here
|
202 |
</select> |
214 |
</select> |
203 |
</li> |
215 |
</li> |
204 |
|
216 |
|
205 |
<li class="radio"><label for="showall">Show any items currently checked out:</label> |
|
|
206 |
[% IF ( showall ) %] |
207 |
<input type="checkbox" id="showall" name="showall" value="show" checked="checked" /> |
208 |
[% ELSE %] |
209 |
<input type="checkbox" id="showall" name="showall" value="show" /> |
210 |
[% END %] |
211 |
</li> |
212 |
</ol> |
217 |
</ol> |
213 |
<fieldset class="action"> |
218 |
<fieldset class="action"> |
214 |
<input type="submit" value="Apply filter" class="submit" /> |
219 |
<input type="submit" value="Apply filter" class="submit" /> |
Lines 277-282
Link Here
|
277 |
}); |
282 |
}); |
278 |
} |
283 |
} |
279 |
|
284 |
|
|
|
285 |
function update_date_due_filters_visibility(){ |
286 |
if( $("#showall").is(":checked")) { |
287 |
$(".date_due_filter").hide(); |
288 |
$("#from").prop("disabled", true); |
289 |
$("#to").prop("disabled", true); |
290 |
} else { |
291 |
$(".date_due_filter").show(); |
292 |
$("#from").prop("disabled", false); |
293 |
$("#to").prop("disabled", false); |
294 |
} |
295 |
} |
296 |
|
280 |
$(document).ready(function(){ |
297 |
$(document).ready(function(){ |
281 |
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'overdues', 'circ-overdues', 'json' ) | $raw %]; |
298 |
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'overdues', 'circ-overdues', 'json' ) | $raw %]; |
282 |
KohaTable("overduest", { |
299 |
KohaTable("overduest", { |
Lines 285-290
Link Here
|
285 |
"autoWidth": false, |
302 |
"autoWidth": false, |
286 |
"stateSave": true |
303 |
"stateSave": true |
287 |
}, columns_settings); |
304 |
}, columns_settings); |
|
|
305 |
|
306 |
$("#showall").on("change", function(){ |
307 |
update_date_due_filters_visibility(); |
308 |
}); |
309 |
update_date_due_filters_visibility(); |
288 |
}); |
310 |
}); |
289 |
</script> |
311 |
</script> |
290 |
[% END %] |
312 |
[% END %] |
291 |
- |
|
|