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