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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt (-85 / +87 lines)
Lines 154-200 Link Here
154
                    <div id="basketgroupcolumns" class="row">
154
                    <div id="basketgroupcolumns" class="row">
155
                        [% UNLESS (closedbg) %]
155
                        [% UNLESS (closedbg) %]
156
                            <div class="col-xs-6 col-xs-push-6">
156
                            <div class="col-xs-6 col-xs-push-6">
157
158
                                    <div id="groups">
157
                                    <div id="groups">
159
                                        <div class="workarea_alt" >
158
                                        <div class="workarea_alt" >
160
                                            <h3>Ungrouped baskets</h3>
159
                                            <h3>Ungrouped baskets</h3>
161
                                                <table id="ungrouped" class="basketgroup_baskets">
160
                                                <div class="page-section">
162
                                                    <thead>
161
                                                    <table id="ungrouped" class="basketgroup_baskets">
163
                                                        <tr>
162
                                                        <thead>
164
                                                            <th>Basket</th>
163
                                                            <tr>
165
                                                            <th>Total</th>
164
                                                                <th>Basket</th>
166
                                                            <th class="NoSort"></th>
165
                                                                <th>Total</th>
167
                                                        </tr>
166
                                                                <th class="NoSort"></th>
168
                                                    </thead>
167
                                                            </tr>
169
                                                    <tbody>
168
                                                        </thead>
170
                                                        [% IF ( baskets ) %]
169
                                                        <tbody>
171
                                                            [% FOREACH basket IN baskets %]
170
                                                            [% IF ( baskets ) %]
172
                                                                <tr class="ungrouped" id="b-[% basket.basketno | html %]">
171
                                                                [% FOREACH basket IN baskets %]
173
                                                                    <td>
172
                                                                    <tr class="ungrouped" id="b-[% basket.basketno | html %]">
174
                                                                        <a href="basket.pl?basketno=[% basket.basketno | uri %]">
173
                                                                        <td>
175
                                                                            [% IF ( basket.basketname ) %]
174
                                                                            <a href="basket.pl?basketno=[% basket.basketno | uri %]">
176
                                                                                [% basket.basketname | html %]
175
                                                                                [% IF ( basket.basketname ) %]
177
                                                                            [% ELSE %]
176
                                                                                    [% basket.basketname | html %]
178
                                                                                <span>No name, basketnumber: [% basket.basketno | html %]</span>
177
                                                                                [% ELSE %]
179
                                                                            [% END %]
178
                                                                                    <span>No name, basketnumber: [% basket.basketno | html %]</span>
180
                                                                        </a>
179
                                                                                [% END %]
181
                                                                    </td>
180
                                                                            </a>
182
                                                                    <td data-sort="[% basket.total | html %]">
181
                                                                        </td>
183
                                                                        [% basket.total | $Price %]
182
                                                                        <td data-sort="[% basket.total | html %]">
184
                                                                        <input type="hidden" class="basket" name="basket" value="[% basket.basketno | html %]" />
183
                                                                            [% basket.total | $Price %]
185
                                                                    </td>
184
                                                                            <input type="hidden" class="basket" name="basket" value="[% basket.basketno | html %]" />
186
                                                                    <td>
185
                                                                        </td>
187
                                                                        <a class="addtogroup btn btn-default btn-xs" data-basketid="b-[% basket.basketno | html %]">
186
                                                                        <td>
188
                                                                            <i class="fa fa-plus" aria-hidden="true"></i> Add to group
187
                                                                            <a class="addtogroup btn btn-default btn-xs" data-basketid="b-[% basket.basketno | html %]">
189
                                                                        </a>
188
                                                                                <i class="fa fa-plus" aria-hidden="true"></i> Add to group
190
                                                                    </td>
189
                                                                            </a>
191
                                                                </tr>
190
                                                                        </td>
191
                                                                    </tr>
192
                                                                [% END %]
192
                                                            [% END %]
193
                                                            [% END %]
193
                                                        [% END %]
194
                                                        </tbody>
194
                                                    </tbody>
195
                                                    </table>
195
                                                </table>
196
                                                </div><!--/.page-section -->
196
                                        </div>
197
                                        </div><!-- /#groups -->
197
                                    </div>
198
                                    </div><!-- /.col-xs-6 -->
198
199
199
                            </div>
200
                            </div>
200
                        [% END %]
201
                        [% END %]
Lines 204-210 Link Here
204
                            <div class="col-xs-6 col-xs-pull-6">
205
                            <div class="col-xs-6 col-xs-pull-6">
205
                        [% END %]
206
                        [% END %]
206
                            <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post" id="groupingform" onsubmit="return submitForm(this)">
207
                            <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post" id="groupingform" onsubmit="return submitForm(this)">
207
                                <fieldset id="various" class="brief">
208
                                <fieldset id="various" class="brief rows">
208
                                    <ol>
209
                                    <ol>
209
                                        [% UNLESS (closedbg) %]
210
                                        [% UNLESS (closedbg) %]
210
                                            <li>
211
                                            <li>
Lines 234-240 Link Here
234
                                                    [% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %]
235
                                                    [% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %]
235
                                                </select>
236
                                                </select>
236
                                            </li>
237
                                            </li>
237
                                            <li><p>or</p></li>
238
                                        </ol>
239
                                        <p>or</p>
240
                                        <ol>
238
                                            <li>
241
                                            <li>
239
                                                <label for="freedeliveryplace">Delivery place:</label>
242
                                                <label for="freedeliveryplace">Delivery place:</label>
240
                                                <textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace | html %]</textarea>
243
                                                <textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace | html %]</textarea>
Lines 260-310 Link Here
260
                                                    <input name="deliverycomment" id="deliverycomment" type="hidden" value = "[% deliverycomment | html %]" />
263
                                                    <input name="deliverycomment" id="deliverycomment" type="hidden" value = "[% deliverycomment | html %]" />
261
                                                [% END %]
264
                                                [% END %]
262
                                            </li>
265
                                            </li>
263
                                            <li>
266
                                        </ol>
264
                                                <h3>Baskets in this group:</h3>
267
                                        <h3>Baskets in this group:</h3>
265
                                                <table id="grouped" class="basketgroup_baskets">
268
                                        <table id="grouped" class="basketgroup_baskets">
266
                                                    <thead>
269
                                            <thead>
267
                                                        <tr>
270
                                                <tr>
268
                                                            <th>Basket</th>
271
                                                    <th>Basket</th>
269
                                                            <th>Total</th>
272
                                                    <th>Total</th>
270
                                                            <th class="NoSort"></th>
273
                                                    <th class="NoSort"></th>
271
                                                        </tr>
274
                                                </tr>
272
                                                    </thead>
275
                                            </thead>
273
                                                    <tbody>
276
                                            <tbody>
274
                                                        [% FOREACH selectedbasket IN selectedbaskets %]
277
                                                [% FOREACH selectedbasket IN selectedbaskets %]
275
                                                            <tr id="b-[% selectedbasket.basketno | html %]">
278
                                                    <tr id="b-[% selectedbasket.basketno | html %]">
276
                                                                <td>
279
                                                        <td>
277
                                                                    <a href="basket.pl?basketno=[% selectedbasket.basketno | uri %]">
280
                                                            <a href="basket.pl?basketno=[% selectedbasket.basketno | uri %]">
278
                                                                        [% IF ( selectedbasket.basketname ) %]
281
                                                                [% IF ( selectedbasket.basketname ) %]
279
                                                                            [% selectedbasket.basketname | html %]
282
                                                                    [% selectedbasket.basketname | html %]
280
                                                                        [% ELSE %]
283
                                                                [% ELSE %]
281
                                                                            <span>No name, basketnumber: [% selectedbasket.basketno | html %]</span>
284
                                                                    <span>No name, basketnumber: [% selectedbasket.basketno | html %]</span>
282
                                                                        [% END %]
285
                                                                [% END %]
283
                                                                    </a>
286
                                                            </a>
284
                                                                </td>
287
                                                        </td>
285
                                                                <td data-sort="[% selectedbasket.total | html %]">
288
                                                        <td data-sort="[% selectedbasket.total | html %]">
286
                                                                    [% selectedbasket.total | $Price %]
289
                                                            [% selectedbasket.total | $Price %]
287
                                                                    <input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno | html %]" />
290
                                                            <input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno | html %]" />
288
                                                                </td>
291
                                                        </td>
289
                                                                <td>
292
                                                        <td>
290
                                                                    [% IF ( closedbg ) %]
293
                                                            [% IF ( closedbg ) %]
291
                                                                    [% ELSE %]
294
                                                            [% ELSE %]
292
                                                                        <a class="removefromgroup btn btn-default btn-xs" data-basketid="b-[% selectedbasket.basketno | html %]" id="addtogroup[% selectedbasket.basketno | html %]">
295
                                                                <a class="removefromgroup btn btn-default btn-xs" data-basketid="b-[% selectedbasket.basketno | html %]" id="addtogroup[% selectedbasket.basketno | html %]">
293
                                                                            <i class="fa fa-trash" aria-hidden="true"></i> Remove
296
                                                                    <i class="fa fa-trash" aria-hidden="true"></i> Remove
294
                                                                        </a>
297
                                                                </a>
295
                                                                    [% END %]
298
                                                            [% END %]
296
                                                                </td>
299
                                                        </td>
297
                                                            </tr>
300
                                                    </tr>
298
                                                        [% END %]
301
                                                [% END %]
299
                                                    </tbody>
302
                                            </tbody>
300
                                                </table>
303
                                        </table>
301
                                            </li>
304
                                        [% UNLESS (closedbg) %]
302
                                            [% UNLESS (closedbg) %]
305
                                            <ol>
303
                                                <li><label><input type="checkbox" id="closedbg" name="closedbg" /> Close basket group</label></li>
306
                                                <li><label for="closedbg">Close basket group</label><input type="checkbox" id="closedbg" name="closedbg" /></li>
304
                                            [% ELSE %]
307
                                            </ol>
305
                                                <input type="hidden" id="closedbg" name="closedbg" value ="1"/>
308
                                        [% ELSE %]
306
                                            [% END %]
309
                                            <input type="hidden" id="closedbg" name="closedbg" value ="1"/>
307
                                    </ol>
310
                                        [% END %]
308
                                </fieldset>
311
                                </fieldset>
309
312
310
                                [% UNLESS (closedbg) %]
313
                                [% UNLESS (closedbg) %]
311
- 

Return to bug 32076