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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-39 / +4 lines)
Lines 142-188 Link Here
142
                    <div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-small" data-toggle="modal"><i class="icon-plus"></i> Add to basket</a></div>
142
                    <div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-small" data-toggle="modal"><i class="icon-plus"></i> Add to basket</a></div>
143
                    <div class="btn-group"><a href="basketheader.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;op=add_form" class="btn btn-small" id="basketheadbutton"><i class="icon-pencil"></i> Edit basket</a></div>
143
                    <div class="btn-group"><a href="basketheader.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;op=add_form" class="btn btn-small" id="basketheadbutton"><i class="icon-pencil"></i> Edit basket</a></div>
144
                    <div class="btn-group"><a href="#" class="btn btn-small" id="delbasketbutton"><i class="icon-remove"></i> Delete this basket</a></div>
144
                    <div class="btn-group"><a href="#" class="btn btn-small" id="delbasketbutton"><i class="icon-remove"></i> Delete this basket</a></div>
145
                <div id="toolbar">
145
                    [% IF ediaccount %]
146
                    <script type="text/javascript">
147
                        //<![CDATA[
148
                        // prepare DOM for YUI Toolbar
149
                        $(document).ready(function() {
150
                            yuiToolbar();
151
                        });
152
                        // YUI Toolbar Functions
153
                        function yuiToolbar() {
154
                            [% IF ( unclosable ) %]
155
                                new YAHOO.widget.Button("closebutton", {disabled:true});
156
                            [% ELSIF ( uncertainprices ) %]
157
                                new YAHOO.widget.Button("uncertpricesbutton");
158
                            [% ELSE %]
159
                                new YAHOO.widget.Button("closebutton");
160
                            [% END %]
161
                            new YAHOO.widget.Button("basketheadbutton");
162
                            new YAHOO.widget.Button("exportbutton");
163
                            new YAHOO.widget.Button("delbasketbutton");
164
                            new YAHOO.widget.Button("ediorderbutton");
165
                        }
166
                        //]]>
167
                    </script>
168
169
                    <ul id="toolbar-list" class="toolbar">
170
                    <li><a href="basketheader.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;op=add_form" class="button" id="basketheadbutton">Edit basket</a></li>
171
                    <li><a href="javascript:confirm_deletion();" class="button" id="delbasketbutton">Delete this basket</a></li>
172
                    [% IF ( unclosable ) %]
173
                    [% ELSIF ( uncertainprices ) %]
174
                        <div class="btn-group"><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&amp;owner=1" class="btn btn-small" id="uncertpricesbutton">Uncertain prices</a></div>
175
                    [% ELSE %]
176
                        <div class="btn-group">
146
                        <div class="btn-group">
177
                            <a href="[% script_name %]?op=close&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]" class="btn btn-small" id="closebutton"><i class="icon-remove-sign"></i> Close this basket</a>
147
                            <a class="btn btn-small" href="[% script_name %]?op=ediorder&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]" class="button" id="ediorderbutton">
148
                                <i class="icon-retweet"></i> EDIfact order
149
                            </a>
178
                        </div>
150
                        </div>
179
                    [% END %]
151
                    [% END %]
180
                        <div class="btn-group"><a href="[% script_name %]?op=export&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]" class="btn btn-small" id="exportbutton"><i class="icon-download"></i> Export this basket as CSV</a></div>
181
                        <li><a href="[% script_name %]?op=export&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]" class="button" id="exportbutton">Export this basket as CSV</a></li>
182
                    [% IF ediaccount %]
183
                        <li><a href="[% script_name %]?op=ediorder&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]" class="button" id="ediorderbutton">EDIfact order</a></li>
184
                    [% END %]
185
                    </ul>
186
152
187
                </div>
153
                </div>
188
            [% ELSE %]
154
            [% ELSE %]
189
- 

Return to bug 7736