Bug 16112: Do not depend on SpecifyDueDate
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 21 Aug 2020 07:06:41 +0000 (09:06 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Aug 2020 10:10:53 +0000 (12:10 +0200)
It's possible to specify a renewal due date in the checkouts table
even if SpecifyDueDate is off.

Also change the label from "Specify due date:" to "Renewal due date:"

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt

index aa13327..717b815 100644 (file)
 
                         <button type="submit" class="btn btn-default">Submit</button>
 
-                        [% IF Koha.Preference('SpecifyDueDate') %]
-                            <div class="circ-settings show">
-                                <div class="date-select" id="renew_date_override_fields">
-                                    <div><label for="hard_due_date" class="hint">Specify due date [% INCLUDE 'date-format.inc' %]:</label></div>
-                                    <input type="text" size="20" id="hard_due_date" name="hard_due_date" value="[% hard_due_date | $KohaDates with_hours => 1 %]" />
-                                    <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
-                                </div> <!-- /.date-select -->
-                            </div>
-                        [% END %]
+                        <div class="circ-settings show">
+                            <div class="date-select" id="renew_date_override_fields">
+                                <div><label for="hard_due_date" class="hint">Renewal due date [% INCLUDE 'date-format.inc' %]:</label></div>
+                                <input type="text" size="20" id="hard_due_date" name="hard_due_date" value="[% hard_due_date | $KohaDates with_hours => 1 %]" />
+                                <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
+                            </div> <!-- /.date-select -->
+                        </div>
 
                     </fieldset>