Lines 99-113
Link Here
|
99 |
</li> |
99 |
</li> |
100 |
</ol> |
100 |
</ol> |
101 |
</fieldset> |
101 |
</fieldset> |
102 |
[% IF Koha.Preference('SpecifyDueDate') %] |
102 |
[% IF Koha.Preference('SpecifyDueDate') && Koha.Preference('OnSiteCheckouts') %] |
103 |
<fieldset class="rows"> |
103 |
<fieldset class="rows"> |
104 |
<legend>Due date: </legend> |
104 |
<legend>Due date:</legend> |
105 |
<label for="duedatespec">Hard due date [% INCLUDE 'date-format.inc' %]:</label> |
105 |
<label for="duedatespec">Hard due date: [% INCLUDE 'date-format.inc' %]:</label> |
106 |
<input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" class="flatpickr" data-flatpickr-enable-time="true" /> |
106 |
<input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" class="flatpickr" data-flatpickr-enable-time="true"/> |
107 |
</fieldset> |
107 |
<div id="onsite_checkout-select" class="circ-setting"> |
108 |
[% END %] |
108 |
<div class="circ-setting"> |
|
|
109 |
<label for="onsite_checkout">On-site checkout:</label> |
110 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting"/> |
111 |
</div> |
112 |
</div> |
113 |
</fieldset> |
114 |
|
115 |
[% ELSIF Koha.Preference('SpecifyDueDate') %] |
116 |
<fieldset class="rows"> |
117 |
<legend>Due date:</legend> |
118 |
<label for="duedatespec">Hard due date [% INCLUDE 'date-format.inc' %]:</label> |
119 |
<input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" class="flatpickr" data-flatpickr-enable-time="true" /> |
120 |
</fieldset> |
121 |
[% END %] |
122 |
|
109 |
<input type="hidden" name="op" value="show" /> |
123 |
<input type="hidden" name="op" value="show" /> |
110 |
</fieldset> |
124 |
</fieldset> |
|
|
125 |
|
111 |
<fieldset class="action"> |
126 |
<fieldset class="action"> |
112 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
127 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
113 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
128 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
Lines 331-336
Link Here
|
331 |
[% MACRO jsinclude BLOCK %] |
346 |
[% MACRO jsinclude BLOCK %] |
332 |
[% INCLUDE 'calendar.inc' %] |
347 |
[% INCLUDE 'calendar.inc' %] |
333 |
[% INCLUDE 'datatables.inc' %] |
348 |
[% INCLUDE 'datatables.inc' %] |
|
|
349 |
[% Asset.js("js/members-menu.js") | $raw %] |
350 |
[% Asset.js("js/pages/circulation.js") | $raw %] |
334 |
<script> |
351 |
<script> |
335 |
$(document).ready(function() { |
352 |
$(document).ready(function() { |
336 |
if($('#barcodelist').length) { |
353 |
if($('#barcodelist').length) { |
Lines 348-353
Link Here
|
348 |
"bPaginate": false |
365 |
"bPaginate": false |
349 |
})); |
366 |
})); |
350 |
}); |
367 |
}); |
|
|
368 |
// On-site batch checkout |
369 |
function toggle_onsite_checkout(){ |
370 |
if ( $("#onsite_checkout").prop('checked') ) { |
371 |
const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr; |
372 |
duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]"); |
373 |
}; |
374 |
}; |
375 |
|
376 |
$("#onsite_checkout").click(function(){ |
377 |
toggle_onsite_checkout(); |
378 |
}); |
351 |
|
379 |
|
352 |
</script> |
380 |
</script> |
353 |
[% INCLUDE 'str/members-menu.inc' %] |
381 |
[% INCLUDE 'str/members-menu.inc' %] |
354 |
- |
|
|