Lines 71-76
Link Here
|
71 |
<input type="hidden" name="basketno" value="[% basket.basketno | html %]" /> |
71 |
<input type="hidden" name="basketno" value="[% basket.basketno | html %]" /> |
72 |
|
72 |
|
73 |
<input type="hidden" name="ordernumbers" value="[% ordernumbers.join(',') | html %]" /> |
73 |
<input type="hidden" name="ordernumbers" value="[% ordernumbers.join(',') | html %]" /> |
|
|
74 |
[% IF linking_ordernumber %] |
75 |
<input type="hidden" name="linking_ordernumber" value="[% linking_ordernumber | html %]" /> |
76 |
[% END %] |
74 |
</div> |
77 |
</div> |
75 |
</fieldset> |
78 |
</fieldset> |
76 |
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Search" /></fieldset> |
79 |
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Search" /></fieldset> |
Lines 139-144
Link Here
|
139 |
<form method="post" action="/cgi-bin/koha/acqui/duplicate_orders.pl"> |
142 |
<form method="post" action="/cgi-bin/koha/acqui/duplicate_orders.pl"> |
140 |
[% INCLUDE 'csrf-token.inc' %] |
143 |
[% INCLUDE 'csrf-token.inc' %] |
141 |
<div id="orders_to_copy" class="page-section"> |
144 |
<div id="orders_to_copy" class="page-section"> |
|
|
145 |
[% IF linking_ordernumber %] |
146 |
<div class="dialog message">Only one order can be selected for duplication when linking to an existing order.</div> |
147 |
[% END %] |
142 |
<table id="table_orders"> |
148 |
<table id="table_orders"> |
143 |
<caption> |
149 |
<caption> |
144 |
<span class="actions"><a href="#" id="select_all"><i class="fa fa-check"></i> Select all</a> |
150 |
<span class="actions"><a href="#" id="select_all"><i class="fa fa-check"></i> Select all</a> |
Lines 178-183
Link Here
|
178 |
<fieldset class="action"> |
184 |
<fieldset class="action"> |
179 |
<input type="hidden" name="op" value="cud-batch_edit" /> |
185 |
<input type="hidden" name="op" value="cud-batch_edit" /> |
180 |
<input type="hidden" name="basketno" value="[% basket.basketno | html %]" /> |
186 |
<input type="hidden" name="basketno" value="[% basket.basketno | html %]" /> |
|
|
187 |
[% IF linking_ordernumber %] |
188 |
<input type="hidden" name="linking_ordernumber" value="[% linking_ordernumber | html %]" /> |
189 |
[% END %] |
181 |
<button type="submit" class="btn btn-primary go_to_batch_edit">Next <i class="fa fa-fw fa-arrow-right"></i></button> |
190 |
<button type="submit" class="btn btn-primary go_to_batch_edit">Next <i class="fa fa-fw fa-arrow-right"></i></button> |
182 |
</fieldset> |
191 |
</fieldset> |
183 |
</form> |
192 |
</form> |
Lines 259-264
Link Here
|
259 |
<input type="hidden" name="basketno" value="[% basket.basketno | html %]" /> |
268 |
<input type="hidden" name="basketno" value="[% basket.basketno | html %]" /> |
260 |
<!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, useful when receiveing an order --> |
269 |
<!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, useful when receiveing an order --> |
261 |
<input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" /> |
270 |
<input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" /> |
|
|
271 |
[% IF linking_ordernumber %] |
272 |
<input type="hidden" name="linking_ordernumber" value="[% linking_ordernumber | html %]" /> |
273 |
[% END %] |
262 |
<button type="submit" class="btn btn-primary">Duplicate orders</button> |
274 |
<button type="submit" class="btn btn-primary">Duplicate orders</button> |
263 |
<a class="cancel" href="/cgi-bin/koha/acqui/duplicate_orders.pl?basketno=[% basket.basketno | html %]">Cancel</a> |
275 |
<a class="cancel" href="/cgi-bin/koha/acqui/duplicate_orders.pl?basketno=[% basket.basketno | html %]">Cancel</a> |
264 |
</fieldset> |
276 |
</fieldset> |
Lines 435-440
Link Here
|
435 |
$("input[name='copy_existing_value']").each(function(){ |
447 |
$("input[name='copy_existing_value']").each(function(){ |
436 |
render_disabled(this); |
448 |
render_disabled(this); |
437 |
}); |
449 |
}); |
|
|
450 |
|
451 |
[% IF linking_ordernumber %] |
452 |
$("input[type='checkbox'][name='ordernumber']").on("click", function() { |
453 |
var checkbox_count = $("input[type='checkbox'][name='ordernumber']:checked").length; |
454 |
if ( checkbox_count < 1 ) { |
455 |
$("input[type='checkbox'][name='ordernumber']").removeAttr("disabled"); |
456 |
} else { |
457 |
$("input[type='checkbox'][name='ordernumber']").prop("disabled","disabled"); |
458 |
$("input[type='checkbox'][name='ordernumber']:checked").removeAttr("disabled"); |
459 |
} |
460 |
}); |
461 |
[% END %] |
438 |
}); |
462 |
}); |
439 |
function render_disabled (elt) { |
463 |
function render_disabled (elt) { |
440 |
var field = $(elt).val(); |
464 |
var field = $(elt).val(); |