Lines 167-187
Link Here
|
167 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off" > |
167 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off" > |
168 |
|
168 |
|
169 |
<fieldset> |
169 |
<fieldset> |
170 |
<legend>Renew</legend> |
170 |
<h2>Renew</h2> |
171 |
|
171 |
|
172 |
[% IF Koha.Preference('SpecifyDueDate') %] |
172 |
<div> |
173 |
<label for="hard_due_date">Hard due date [% INCLUDE 'date-format.inc' %]:</label> |
173 |
<label for="barcode" class="hint">Enter item barcode: </label> |
174 |
<input type="text" size="20" id="hard_due_date" name="hard_due_date" value="[% hard_due_date | $KohaDates with_hours => 1 %]" /> |
174 |
</div> |
175 |
<br/> |
|
|
176 |
[% END %] |
177 |
|
175 |
|
178 |
<label for="barcode">Enter item barcode: </label> |
176 |
<input name="barcode" id="barcode" size="14" class="barcode focus" type="text" /> |
179 |
|
177 |
|
180 |
<input name="barcode" id="barcode" size="14" class="focus" type="text" /> |
178 |
<button type="submit" class="btn btn-default">Submit</button> |
|
|
179 |
|
180 |
[% IF Koha.Preference('SpecifyDueDate') %] |
181 |
<div class="circ-settings show"> |
182 |
<div class="date-select" id="renew_date_override_fields"> |
183 |
<div><label for="hard_due_date" class="hint">Specify due date [% INCLUDE 'date-format.inc' %]:</label></div> |
184 |
<input type="text" size="20" id="hard_due_date" name="hard_due_date" value="[% hard_due_date | $KohaDates with_hours => 1 %]" /> |
185 |
<button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button> |
186 |
</div> <!-- /.date-select --> |
187 |
</div> |
188 |
[% END %] |
181 |
|
189 |
|
182 |
<input type="submit" class="submit" value="Submit" /> |
|
|
183 |
</fieldset> |
190 |
</fieldset> |
184 |
|
191 |
|
|
|
192 |
|
185 |
</form> |
193 |
</form> |
186 |
[% END %] |
194 |
[% END %] |
187 |
|
195 |
|
Lines 233-238
Link Here
|
233 |
}).on("change", function(e, value) { |
241 |
}).on("change", function(e, value) { |
234 |
if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");} |
242 |
if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");} |
235 |
}); |
243 |
}); |
|
|
244 |
$("#cleardate").on("click",function(e){ |
245 |
e.preventDefault(); |
246 |
this.form.hard_due_date.value = ''; |
247 |
this.form.barcode.focus(); |
248 |
}); |
236 |
[% END %] |
249 |
[% END %] |
237 |
|
250 |
|
238 |
}); |
251 |
}); |
239 |
- |
|
|