Bug 37993: (QA follow-up) Add a hint/warning when no EANs are defined
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit cc6479735c)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
5bca7392bf
commit
f422f18102
|
|
@ -111,7 +111,9 @@
|
|||
|
||||
[% IF Koha.Preference('EDIFACT') && ediaccount %]
|
||||
<div class="btn-group">
|
||||
[% IF eans.size == 1 %]
|
||||
[% UNLESS eans.size %]
|
||||
<a title="You must define an EAN in Administration -> Library EANs" class="btn btn-default btn-xs" diasbled="disabled" href="#"><i class="fa fa-download"></i> Create EDIFACT order</a>
|
||||
[% ELSIF eans.size == 1 %]
|
||||
<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>
|
||||
[% ELSE %]
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue