@@ -, +, @@ checkout --- .../en/modules/circ/circulation_batch_checkouts.tt | 24 +++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt @@ -1,6 +1,7 @@ [% USE raw %] [% USE Asset %] [% USE Branches %] +[% USE Koha %] [% USE KohaDates %] [% USE Price %] [% USE AuthorisedValues %] @@ -77,6 +78,13 @@ + [% IF Koha.Preference('SpecifyDueDate') %] +
+ Due date: + + +
+ [% END %]
@@ -259,7 +267,7 @@ [% END %] [% IF checkout_info.issue.date_due %] -
  • Due on [% checkout_info.issue.date_due | $KohaDates %]
  • +
  • Due on [% checkout_info.issue.date_due | $KohaDates as_due_date => 1 %]
  • [% END %] @@ -274,6 +282,7 @@ +
    @@ -315,7 +324,20 @@ ], "bPaginate": false })); + + [% IF Koha.Preference('SpecifyDueDate') %] + $("#duedatespec").datetimepicker({ + onClose: function(dateText, inst) { + validate_date(dateText, inst); + }, + hour: 23, + minute: 59 + }).on("change", function(e, value) { + if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");} + }); + [% END %] }); + [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] --