Lines 111-136
Link Here
|
111 |
|
111 |
|
112 |
[% IF Koha.Preference('EDIFACT') && ediaccount %] |
112 |
[% IF Koha.Preference('EDIFACT') && ediaccount %] |
113 |
<div class="btn-group"> |
113 |
<div class="btn-group"> |
114 |
[% IF eans.count == 1 %] |
114 |
[% IF eans.size == 1 %] |
115 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="post"> |
115 |
<a class="btn btn-default btn-xs submit-form-link" href="#" data-ean="[% eans.0 | html %]" data-basketno="[% basketno | html %]" data-action="basket.pl" data-method="post" data-op="cud-ediorder"><i class="fa fa-download"></i> Create EDIFACT order</a> |
116 |
[% INCLUDE 'csrf-token.inc' %] |
|
|
117 |
<input type="hidden" name="op" value="cud-ediorder" /> |
118 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
119 |
<input type="hidden" name="ean" value="[% eans.0 | html %]" /> |
120 |
<button type="submit" class="btn btn-default" id="ediorderbutton"><i class="fa fa-download"></i> Create EDIFACT order</button> |
121 |
</form> |
122 |
[% ELSE %] |
116 |
[% ELSE %] |
123 |
<button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false" id="ediorderbutton"><i class="fa fa-download"></i> Create EDIFACT order</button> |
117 |
<button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false" id="ediorderbutton"><i class="fa fa-download"></i> Create EDIFACT order</button> |
124 |
<ul class="dropdown-menu"> |
118 |
<ul class="dropdown-menu"> |
125 |
[% FOREACH eanacct IN eans %] |
119 |
[% FOREACH eanacct IN eans %] |
126 |
<li> |
120 |
<li> |
127 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="post"> |
121 |
<a class="btn btn-default btn-xs submit-form-link" href="#" data-ean="[% eanacct.ean | html %]" data-basketno="[% basketno | html %]" data-action="basket.pl" data-method="post" data-op="cud-ediorder">[% eanacct.branch.branchname | html %] ([% eanacct.ean | html %]) [% IF eanacct .description %][[% eanacct.description | html %]][% END %]</a> |
128 |
[% INCLUDE 'csrf-token.inc' %] |
|
|
129 |
<input type="hidden" id="basketno" value="[% basketno | html %]" name="basketno" /> |
130 |
<input type="hidden" value="cud-ediorder" name="op" /> |
131 |
<input type="hidden" name="ean" value="[% eanacct.ean | html %]"> |
132 |
<button type="submit" class="btn btn-default">[% eanacct.branch.branchname | html %] ([% eanacct.ean | html %]) [% IF eanacct.description %][[% eanacct.description | html %]][% END %]</button> |
133 |
</form> |
134 |
</li> |
122 |
</li> |
135 |
[% END %] |
123 |
[% END %] |
136 |
</ul> |
124 |
</ul> |
Lines 1026-1031
Link Here
|
1026 |
|
1014 |
|
1027 |
[% MACRO jsinclude BLOCK %] |
1015 |
[% MACRO jsinclude BLOCK %] |
1028 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
1016 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
|
|
1017 |
[% Asset.js("js/form-submit.js") | $raw %] |
1029 |
[% INCLUDE 'datatables.inc' %] |
1018 |
[% INCLUDE 'datatables.inc' %] |
1030 |
[% INCLUDE 'columns_settings.inc' %] |
1019 |
[% INCLUDE 'columns_settings.inc' %] |
1031 |
[% Asset.js("js/acq.js") | $raw %] |
1020 |
[% Asset.js("js/acq.js") | $raw %] |
1032 |
- |
|
|