View | Details | Raw Unified | Return to bug 16748
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt (-1 / +23 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Branches %]
3
[% USE Branches %]
4
[% USE Koha %]
4
[% USE KohaDates %]
5
[% USE KohaDates %]
5
[% USE Price %]
6
[% USE Price %]
6
[% USE AuthorisedValues %]
7
[% USE AuthorisedValues %]
Lines 77-82 Link Here
77
          </li>
78
          </li>
78
        </ol>
79
        </ol>
79
      </fieldset>
80
      </fieldset>
81
      [% IF Koha.Preference('SpecifyDueDate') %]
82
          <fieldset class="rows">
83
              <legend>Due date: </legend>
84
              <label for="duedatespec">Hard due date [% INCLUDE 'date-format.inc' %]:</label>
85
              <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates with_hours => 1 %]" />
86
          </fieldset>
87
      [% END %]
80
      <input type="hidden" name="op" value="show" />
88
      <input type="hidden" name="op" value="show" />
81
      <fieldset class="action">
89
      <fieldset class="action">
82
        <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
90
        <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
Lines 259-265 Link Here
259
              [% END %]
267
              [% END %]
260
268
261
              [% IF checkout_info.issue.date_due %]
269
              [% IF checkout_info.issue.date_due %]
262
                <li>Due on [% checkout_info.issue.date_due | $KohaDates %]</li>
270
                <li>Due on [% checkout_info.issue.date_due | $KohaDates as_due_date => 1 %]</li>
263
              [% END %]
271
              [% END %]
264
            </td>
272
            </td>
265
          </tr>
273
          </tr>
Lines 274-279 Link Here
274
      <input type="hidden" name="issueconfirmed" value="1" />
282
      <input type="hidden" name="issueconfirmed" value="1" />
275
      <input type="hidden" name="debt_confirmed" value="1" />
283
      <input type="hidden" name="debt_confirmed" value="1" />
276
      <input type="hidden" name="branch" value="[% branch | html %]" />
284
      <input type="hidden" name="branch" value="[% branch | html %]" />
285
      <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
277
      <input type="hidden" name="batch" value="1" />
286
      <input type="hidden" name="batch" value="1" />
278
      <input type="submit" id="checkoutrenew" class="approve" value="Checkout or renew" />
287
      <input type="submit" id="checkoutrenew" class="approve" value="Checkout or renew" />
279
        </fieldset>
288
        </fieldset>
Lines 315-321 Link Here
315
                ],
324
                ],
316
                "bPaginate": false
325
                "bPaginate": false
317
            }));
326
            }));
327
328
            [% IF Koha.Preference('SpecifyDueDate') %]
329
                $("#duedatespec").datetimepicker({
330
                    onClose: function(dateText, inst) {
331
                        validate_date(dateText, inst);
332
                    },
333
                    hour: 23,
334
                    minute: 59
335
                }).on("change", function(e, value) {
336
                    if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
337
                });
338
            [% END %]
318
        });
339
        });
340
319
    </script>
341
    </script>
320
    [% INCLUDE 'str/members-menu.inc' %]
342
    [% INCLUDE 'str/members-menu.inc' %]
321
    [% Asset.js("js/members-menu.js") | $raw %]
343
    [% Asset.js("js/members-menu.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt (-1 / +18 lines)
Lines 168-173 Link Here
168
                    <fieldset>
168
                    <fieldset>
169
                        <legend>Renew</legend>
169
                        <legend>Renew</legend>
170
170
171
                        [% IF Koha.Preference('SpecifyDueDate') %]
172
                            <label for="hard_due_date">Hard due date [% INCLUDE 'date-format.inc' %]:</label>
173
                            <input type="text" size="20" id="hard_due_date" name="hard_due_date" value="[% hard_due_date | $KohaDates with_hours => 1 %]" />
174
                        [% END %]
175
171
                        <label for="barcode">Enter item barcode: </label>
176
                        <label for="barcode">Enter item barcode: </label>
172
177
173
                        <input name="barcode" id="barcode" size="14" class="focus" type="text" />
178
                        <input name="barcode" id="barcode" size="14" class="focus" type="text" />
Lines 215-220 Link Here
215
            }).on('change', function(e) {
220
            }).on('change', function(e) {
216
                if ( ! is_valid_date( $(this).val() ) ) {$(this).val('');}
221
                if ( ! is_valid_date( $(this).val() ) ) {$(this).val('');}
217
            });
222
            });
223
224
            [% IF Koha.Preference('SpecifyDueDate') %]
225
                $("#hard_due_date").datetimepicker({
226
                    onClose: function(dateText, inst) {
227
                        validate_date(dateText, inst);
228
                    },
229
                    hour: 23,
230
                    minute: 59
231
                }).on("change", function(e, value) {
232
                    if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
233
                });
234
            [% END %]
235
218
        });
236
        });
219
    </script>
237
    </script>
220
[% END %]
238
[% END %]
221
- 

Return to bug 16748