View | Details | Raw Unified | Return to bug 37993
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-4 / +7 lines)
Lines 110-119 Link Here
110
                                        [% PROCESS csv_export %]
110
                                        [% PROCESS csv_export %]
111
111
112
                                        [% IF Koha.Preference('EDIFACT') && ediaccount %]
112
                                        [% IF Koha.Preference('EDIFACT') && ediaccount %]
113
                                            [% UNLESS eans.size %]
114
                                            <div class="btn-group" title="You must define an EAN in Administration -> Library EANs">
115
                                                <button class="btn btn-default btn-xs disabled" disabled="disabled" href="#"><i class="fa fa-download"></i> Create EDIFACT order</button>
116
                                            </div>
117
                                            [% ELSE %]
113
                                            <div class="btn-group">
118
                                            <div class="btn-group">
114
                                                [% UNLESS eans.size %]
119
                                                [% IF eans.size == 1 %]
115
                                                    <a title="You must define an EAN in Administration -> Library EANs" class="btn btn-default btn-xs" disabled="disabled" href="#"><i class="fa fa-download"></i> Create EDIFACT order</a>
116
                                                [% ELSIF eans.size == 1 %]
117
                                                    <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>
120
                                                    <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>
118
                                                [% ELSE %]
121
                                                [% ELSE %]
119
                                                    <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>
122
                                                    <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>
Lines 126-131 Link Here
126
                                                    </ul>
129
                                                    </ul>
127
                                                [% END %]
130
                                                [% END %]
128
                                            </div>
131
                                            </div>
132
                                            [% END %]
129
                                        [% END %]
133
                                        [% END %]
130
134
131
                                        [% IF ( active && books_loop ) %]
135
                                        [% IF ( active && books_loop ) %]
132
- 

Return to bug 37993