Lines 136-399
function submitForm(form) {
Link Here
|
136 |
|
136 |
|
137 |
<div id="doc3" class="yui-t2"> |
137 |
<div id="doc3" class="yui-t2"> |
138 |
<div id="bd"> |
138 |
<div id="bd"> |
139 |
<div id="yui-main"> |
139 |
<div id="yui-main"> |
140 |
<div class="yui-b"> |
140 |
<div class="yui-b"> |
141 |
|
141 |
[% IF ( grouping ) %] |
142 |
[% IF ( grouping ) %] |
142 |
[% IF (closedbg) %] |
143 |
[% IF (closedbg) %] |
143 |
<div id="toolbar" class="btn-toolbar"> |
144 |
<div id="toolbar" class="btn-toolbar"> |
144 |
<div class="btn-group"><a href="[% script_name %]?op=reopen&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]&mode=singlebg" class="btn btn-small" id="reopenbutton"><i class="icon-download"></i> Reopen this basket group</a></div> |
145 |
<div class="btn-group"><a href="[% script_name %]?op=reopen&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]&mode=singlebg" class="btn btn-small" id="reopenbutton"><i class="icon-download"></i> Reopen this basket group</a></div> |
145 |
<div class="btn-group"><a href="[% script_name %]?op=export&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="exportbutton"><i class="icon-download"></i> Export this basket group as CSV</a></div> |
146 |
<div class="btn-group"><a href="[% script_name %]?op=export&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="exportbutton"><i class="icon-download"></i> Export this basket group as CSV</a></div> |
146 |
<div class="btn-group"><a href="[% script_name %]?op=print&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="printbutton"><i class="icon-download"></i> Print this basket group in PDF</a></div> |
147 |
<div class="btn-group"><a href="[% script_name %]?op=print&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="printbutton"><i class="icon-download"></i> Print this basket group in PDF</a></div> |
147 |
</div> |
148 |
</div> |
|
|
149 |
[% ELSE %] |
150 |
<div class="btn-group"><a href="[% script_name %]?op=delete&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="delbutton"><i class="icon-remove"></i> Delete basket group</a></div> |
151 |
[% END %] |
152 |
[% IF (name && closedbg) %] |
153 |
<h1>Basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
154 |
[% ELSIF (name) %] |
155 |
<h1>Edit basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
156 |
[% ELSE %] |
157 |
<h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
158 |
[% END %] |
159 |
<div id="basketgroupcolumns" class="yui-g"> |
160 |
[% UNLESS (closedbg) %] |
161 |
<div class="yui-u"> |
162 |
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups"> |
163 |
<div id="groups"> |
164 |
<fieldset class="brief"> |
165 |
<div class="workarea_alt" > |
166 |
<h3>Ungrouped baskets</h3> |
167 |
<ul id="ungrouped" class="draglist_alt"> |
168 |
[% IF ( baskets ) %] |
169 |
[% FOREACH basket IN baskets %] |
170 |
<li class="ungrouped" id="b-[% basket.basketno %]" > |
171 |
<a href="basket.pl?basketno=[% basket.basketno %]"> |
172 |
[% IF ( basket.basketname ) %] |
173 |
[% basket.basketname %] |
174 |
[% ELSE %] |
175 |
No name, basketnumber: [% basket.basketno %] |
176 |
[% END %] |
177 |
</a>, <br /> |
178 |
Total: [% basket.total %] |
179 |
<input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" /> |
180 |
</li> |
181 |
[% END %] |
182 |
[% END %] |
183 |
</ul> |
184 |
</div> |
185 |
</fieldset> |
186 |
</div> |
187 |
</form> |
188 |
</div> |
189 |
[% END %] |
190 |
<div class="yui-u first"> |
191 |
<form action="" method="post" id="groupingform" onsubmit="return submitForm(this)"> |
192 |
<fieldset id="various" class="brief"> |
193 |
<ol> |
194 |
[% UNLESS (closedbg) %] |
195 |
<li><label for="basketgroupname">Basket group name:</label> |
196 |
<input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" /></li> |
197 |
[% ELSE %] |
148 |
[% ELSE %] |
198 |
<input type="hidden" name="basketgroupname" id="basketgroupname" value="[% name %]" /> |
149 |
<div class="btn-group"><a href="[% script_name %]?op=delete&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="delbutton"><i class="icon-remove"></i> Delete basket group</a></div> |
199 |
[% END %] |
150 |
[% END %] |
200 |
<li> |
151 |
[% IF (name && closedbg) %] |
201 |
[% UNLESS (closedbg) %] |
152 |
<h1>Basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
202 |
<label for="billingplace">Billing place:</label> |
153 |
[% ELSIF (name) %] |
203 |
<select name="billingplace" id="billingplace" style="width:13em;"> |
154 |
<h1>Edit basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
204 |
<option value="">--</option> |
155 |
[% ELSE %] |
205 |
[% FOREACH billingplaceloo IN billingplaceloop %] |
156 |
<h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
206 |
[% IF ( billingplaceloo.selected ) %]<option value="[% billingplaceloo.value %]" selected="selected">[% billingplaceloo.branchname %]</option> |
157 |
[% END %] |
207 |
[% ELSE %]<option value="[% billingplaceloo.value %]">[% billingplaceloo.branchname %]</option>[% END%] |
158 |
<div id="basketgroupcolumns" class="yui-g"> |
208 |
[% END %] |
|
|
209 |
</select> |
210 |
[% ELSE %] |
211 |
<span class="label">Billing place:</span> |
212 |
[% FOREACH billingplaceloo IN billingplaceloop %] |
213 |
[% IF ( billingplaceloo.selected ) %] |
214 |
<input name="billingplace" id="billingplace" type ="hidden" value="[% billingplaceloo.value %]" />[% billingplaceloo.branchname %] |
215 |
[% END %] |
216 |
[% END %] |
217 |
[% END %] |
218 |
</li> |
219 |
[% UNLESS (closedbg) %] |
159 |
[% UNLESS (closedbg) %] |
220 |
<li> |
160 |
<div class="yui-u"> |
221 |
<label for="deliveryplace">Delivery place:</label> |
161 |
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups"> |
222 |
<select name="deliveryplace" id="deliveryplace" style="width:13em;"> |
162 |
<div id="groups"> |
223 |
<option value="">--</option> |
163 |
<fieldset class="brief"> |
224 |
[% FOREACH deliveryplaceloo IN deliveryplaceloop %] |
164 |
<div class="workarea_alt" > |
225 |
[% IF ( deliveryplaceloo.selected ) %]<option value="[% deliveryplaceloo.value %]" selected="selected">[% deliveryplaceloo.branchname %]</option> |
165 |
<h3>Ungrouped baskets</h3> |
226 |
[% ELSE %]<option value="[% deliveryplaceloo.value %]">[% deliveryplaceloo.branchname %]</option>[% END %] |
166 |
<ul id="ungrouped" class="draglist_alt"> |
227 |
[% END %] |
167 |
[% IF ( baskets ) %] |
228 |
<select> |
168 |
[% FOREACH basket IN baskets %] |
229 |
</li> |
169 |
<li class="ungrouped" id="b-[% basket.basketno %]" > |
230 |
<li><p>or</p></li> |
170 |
<a href="basket.pl?basketno=[% basket.basketno %]"> |
231 |
<li><label for="freedeliveryplace">Delivery place:</label> |
171 |
[% IF ( basket.basketname ) %] |
232 |
<textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea></li> |
172 |
[% basket.basketname %] |
233 |
[% ELSE %] |
173 |
[% ELSE %] |
234 |
<li> |
174 |
No name, basketnumber: [% basket.basketno %] |
235 |
<span class="label">Delivery place:</span> |
175 |
[% END %] |
236 |
[% IF (freedeliveryplace) %] |
176 |
</a>, <br /> |
237 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="[% freedeliveryplace %]" />[% freedeliveryplace %] |
177 |
Total: [% basket.total %] |
238 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="" /> |
178 |
<input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" /> |
239 |
[% ELSE %] |
179 |
</li> |
240 |
[% FOREACH deliveryplaceloo IN deliveryplaceloop %] |
180 |
[% END %] |
241 |
[% IF ( deliveryplaceloo.selected ) %] |
181 |
[% END %] |
242 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="[% deliveryplaceloo.value %]" />[% deliveryplaceloo.branchname %] |
182 |
</ul> |
|
|
183 |
</div> |
184 |
</fieldset> |
185 |
</div> |
186 |
</form> |
187 |
</div> |
188 |
[% END %] |
189 |
<div class="yui-u first"> |
190 |
<form action="" method="post" id="groupingform" onsubmit="return submitForm(this)"> |
191 |
<fieldset id="various" class="brief"> |
192 |
<ol> |
193 |
[% UNLESS (closedbg) %] |
194 |
<li> |
195 |
<label for="basketgroupname">Basket group name:</label> |
196 |
<input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" /> |
197 |
</li> |
198 |
[% ELSE %] |
199 |
<input type="hidden" name="basketgroupname" id="basketgroupname" value="[% name %]" /> |
243 |
[% END %] |
200 |
[% END %] |
244 |
[% END %] |
201 |
<li> |
245 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="" /> |
202 |
[% UNLESS (closedbg) %] |
|
|
203 |
<label for="billingplace">Billing place:</label> |
204 |
<select name="billingplace" id="billingplace" style="width:13em;"> |
205 |
<option value="">--</option> |
206 |
[% FOREACH billingplaceloo IN billingplaceloop %] |
207 |
[% IF ( billingplaceloo.selected ) %]<option value="[% billingplaceloo.value %]" selected="selected">[% billingplaceloo.branchname %]</option> |
208 |
[% ELSE %]<option value="[% billingplaceloo.value %]">[% billingplaceloo.branchname %]</option>[% END%] |
209 |
[% END %] |
210 |
</select> |
211 |
[% ELSE %] |
212 |
<span class="label">Billing place:</span> |
213 |
[% FOREACH billingplaceloo IN billingplaceloop %] |
214 |
[% IF ( billingplaceloo.selected ) %] |
215 |
<input name="billingplace" id="billingplace" type ="hidden" value="[% billingplaceloo.value %]" />[% billingplaceloo.branchname %] |
216 |
[% END %] |
217 |
[% END %] |
218 |
[% END %] |
219 |
</li> |
220 |
[% UNLESS (closedbg) %] |
221 |
<li> |
222 |
<label for="deliveryplace">Delivery place:</label> |
223 |
<select name="deliveryplace" id="deliveryplace" style="width:13em;"> |
224 |
<option value="">--</option> |
225 |
[% FOREACH deliveryplaceloo IN deliveryplaceloop %] |
226 |
[% IF ( deliveryplaceloo.selected ) %]<option value="[% deliveryplaceloo.value %]" selected="selected">[% deliveryplaceloo.branchname %]</option> |
227 |
[% ELSE %]<option value="[% deliveryplaceloo.value %]">[% deliveryplaceloo.branchname %]</option>[% END %] |
228 |
[% END %] |
229 |
<select> |
230 |
</li> |
231 |
<li><p>or</p></li> |
232 |
<li> |
233 |
<label for="freedeliveryplace">Delivery place:</label> |
234 |
<textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea> |
235 |
</li> |
236 |
[% ELSE %] |
237 |
<li> |
238 |
<span class="label">Delivery place:</span> |
239 |
[% IF (freedeliveryplace) %] |
240 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="[% freedeliveryplace %]" />[% freedeliveryplace %] |
241 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="" /> |
242 |
[% ELSE %] |
243 |
[% FOREACH deliveryplaceloo IN deliveryplaceloop %] |
244 |
[% IF ( deliveryplaceloo.selected ) %] |
245 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="[% deliveryplaceloo.value %]" />[% deliveryplaceloo.branchname %] |
246 |
[% END %] |
247 |
[% END %] |
248 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="" /> |
249 |
[% END %] |
250 |
</li> |
251 |
[% END %] |
252 |
<li> |
253 |
[% UNLESS (closedbg) %] |
254 |
<label for="deliverycomment">Delivery comment:</label> |
255 |
<textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea> |
256 |
[% ELSE %] |
257 |
<span class="label">Delivery comment:</span>[% deliverycomment %] |
258 |
<input name="deliverycomment" id="deliverycomment" type="hidden" value = "[% deliverycomment %]" /> |
259 |
[% END %] |
260 |
</li> |
261 |
<li> |
262 |
<span class="label">Baskets in this group:</span> |
263 |
[% UNLESS (closedbg) %] |
264 |
<ul class="draglist" id="bg"> |
265 |
[% ELSE %] |
266 |
<ul> |
267 |
[% END %] |
268 |
[% FOREACH selectedbasket IN selectedbaskets %] |
269 |
<li class="grouped" id="b-[% selectedbasket.basketno %]" > |
270 |
<a href="basket.pl?basketno=[% selectedbasket.basketno %]"> |
271 |
[% IF ( selectedbasket.basketname ) %] |
272 |
[% selectedbasket.basketname %] |
273 |
[% ELSE %] |
274 |
No name, basketnumber: [% selectedbasket.basketno %] |
275 |
[% END %] |
276 |
</a>, <br /> |
277 |
Total: [% selectedbasket.total %] |
278 |
<input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" /> |
279 |
</li> |
280 |
[% END %] |
281 |
</ul> |
282 |
</li> |
283 |
[% UNLESS (closedbg) %] |
284 |
<li><label><input type="checkbox" id="closedbg" name="closedbg" />Close basket group</label></li> |
285 |
[% ELSE %] |
286 |
<input type="hidden" id="closedbg" name="closedbg" value ="1"/> |
287 |
[% END %] |
288 |
</ol> |
289 |
</fieldset> |
290 |
[% UNLESS (closedbg) %] |
291 |
<fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
292 |
[% IF ( basketgroupid ) %] |
293 |
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" /> |
294 |
[% END %] |
295 |
<input type="hidden" name="op" value="attachbasket" /> |
296 |
<input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a> |
297 |
</fieldset> |
246 |
[% END %] |
298 |
[% END %] |
247 |
</li> |
299 |
</form> |
248 |
[% END %] |
300 |
</div> |
249 |
<li> |
301 |
</div> |
250 |
[% UNLESS (closedbg) %] |
302 |
[% ELSE %] |
251 |
<label for="deliverycomment">Delivery comment:</label> |
303 |
<div id="toolbar" class="btn-toolbar"> |
252 |
<textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea> |
304 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]" class="btn btn-small" id="newbasketgroup"><i class="icon-plus"></i> New basket group</a></div> |
253 |
[% ELSE %] |
305 |
</div> |
254 |
<span class="label">Delivery comment:</span>[% deliverycomment %] |
306 |
<h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
255 |
<input name="deliverycomment" id="deliverycomment" type="hidden" value = "[% deliverycomment %]" /> |
307 |
<div id="basket_groups" class="toptabs"> |
256 |
[% END %] |
308 |
<ul class="ui-tabs-nav"> |
257 |
</li> |
309 |
[% UNLESS ( listclosed) %]<li class="ui-tabs-selected"><a href="#opened">Open</a></li> |
258 |
<li><span class="label">Baskets in this group:</span> |
310 |
[% ELSE%]<li><a href="#opened">Open</a></li>[% END %] |
259 |
[% UNLESS (closedbg) %] |
311 |
[% IF ( listclosed) %]<li class="ui-tabs-selected"><a href="#closed">Closed</a></li> |
260 |
<ul class="draglist" id="bg"> |
312 |
[% ELSE %]<li><a href="#closed">Closed</a></li>[% END %] |
261 |
[% ELSE %] |
313 |
</ul> |
262 |
<ul> |
314 |
<div id="opened"> |
263 |
[% END %] |
315 |
<table id="basket_group_opened"> |
264 |
[% FOREACH selectedbasket IN selectedbaskets %] |
316 |
<thead> |
265 |
<li class="grouped" id="b-[% selectedbasket.basketno %]" > |
317 |
<tr> |
266 |
<a href="basket.pl?basketno=[% selectedbasket.basketno %]"> |
|
|
267 |
[% IF ( selectedbasket.basketname ) %] |
268 |
[% selectedbasket.basketname %] |
269 |
[% ELSE %] |
270 |
No name, basketnumber: [% selectedbasket.basketno %] |
271 |
[% END %] |
272 |
</a>, <br /> |
273 |
Total: [% selectedbasket.total %] |
274 |
<input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" /> |
275 |
</li> |
276 |
[% END %] |
277 |
</ul> |
278 |
</li> |
279 |
[% UNLESS (closedbg) %] |
280 |
<li><label><input type="checkbox" id="closedbg" name="closedbg" />Close basket group</label></li> |
281 |
[% ELSE %] |
282 |
<input type="hidden" id="closedbg" name="closedbg" value ="1"/> |
283 |
[% END %] |
284 |
</ol> |
285 |
</fieldset> |
286 |
[% UNLESS (closedbg) %] |
287 |
<fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
288 |
[% IF ( basketgroupid ) %] |
289 |
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" /> |
290 |
[% END %] |
291 |
<input type="hidden" name="op" value="attachbasket" /> |
292 |
<input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a> |
293 |
</fieldset> |
294 |
[% END %] |
295 |
</form> |
296 |
</div> |
297 |
</div> |
298 |
[% ELSE %] |
299 |
|
300 |
<div id="toolbar" class="btn-toolbar"> |
301 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]" class="btn btn-small" id="newbasketgroup"><i class="icon-plus"></i> New basket group</a></div> |
302 |
</div> |
303 |
<h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
304 |
|
305 |
<div id="basket_groups" class="toptabs"> |
306 |
<ul class="ui-tabs-nav"> |
307 |
[% UNLESS ( listclosed) %]<li class="ui-tabs-selected"><a href="#opened">Open</a></li> |
308 |
[% ELSE%]<li><a href="#opened">Open</a></li>[% END %] |
309 |
[% IF ( listclosed) %]<li class="ui-tabs-selected"><a href="#closed">Closed</a></li> |
310 |
[% ELSE %]<li><a href="#closed">Closed</a></li>[% END %] |
311 |
</ul> |
312 |
<div id="opened"> |
313 |
<table id="basket_group_opened"> |
314 |
<thead> |
315 |
<tr> |
316 |
<th>Name</th> |
318 |
<th>Name</th> |
317 |
<th>Number</th> |
319 |
<th>Number</th> |
318 |
<th>Billing place</th> |
320 |
<th>Billing place</th> |
319 |
<th>Delivery place</th> |
321 |
<th>Delivery place</th> |
320 |
<th>Number of baskets</th> |
322 |
<th>Number of baskets</th> |
321 |
<th>Action</th> |
323 |
<th>Action</th> |
322 |
</tr> |
324 |
</tr> |
323 |
</thead> |
325 |
</thead> |
324 |
<tbody> |
326 |
<tbody> |
325 |
[% FOREACH basketgroup IN basketgroups %] |
327 |
[% FOREACH basketgroup IN basketgroups %] |
326 |
[% UNLESS ( basketgroup.closed ) %] |
328 |
[% UNLESS ( basketgroup.closed ) %] |
327 |
<tr> |
329 |
<tr> |
328 |
<td>[% IF ( basketgroup.name ) %] |
330 |
<td>[% IF ( basketgroup.name ) %] |
329 |
[% basketgroup.name %] |
331 |
[% basketgroup.name %] |
330 |
[% ELSE %] |
332 |
[% ELSE %] |
331 |
Basket group no. [% basketgroup.id %] |
333 |
Basket group no. [% basketgroup.id %] |
332 |
[% END %] |
334 |
[% END %] |
333 |
</td> |
335 |
</td> |
334 |
<td>[% basketgroup.id %]</td> |
336 |
<td>[% basketgroup.id %]</td> |
335 |
<td>[% basketgroup.billingplace | $KohaBranchName %]</td> |
337 |
<td>[% basketgroup.billingplace | $KohaBranchName %]</td> |
336 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% basketgroup.deliveryplace | $KohaBranchName %][% END %]</td> |
338 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% basketgroup.deliveryplace | $KohaBranchName %][% END %]</td> |
337 |
<td>[% basketgroup.basketsqty %]</td> |
339 |
<td>[% basketgroup.basketsqty %]</td> |
338 |
<td> |
340 |
<td> |
339 |
<input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and print" /> |
341 |
<input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and print" /> |
340 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Edit" /></form> |
342 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Edit" /></form> |
341 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form> |
343 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form> |
342 |
</td> |
344 |
</td> |
343 |
</tr> |
345 |
</tr> |
344 |
[% END %] |
346 |
[% END %] |
345 |
[% END %] |
347 |
[% END %] |
346 |
</tbody> |
348 |
</tbody> |
347 |
</table> |
349 |
</table> |
348 |
</div> |
350 |
</div> |
349 |
<div id="closed"> |
351 |
<div id="closed"> |
350 |
<table id="basket_group_closed"> |
352 |
<table id="basket_group_closed"> |
351 |
<thead> |
353 |
<thead> |
352 |
<tr> |
354 |
<tr> |
353 |
<th>Name</th> |
355 |
<th>Name</th> |
354 |
<th>Number</th> |
356 |
<th>Number</th> |
355 |
<th>Billing place</th> |
357 |
<th>Billing place</th> |
356 |
<th>Delivery place</th> |
358 |
<th>Delivery place</th> |
357 |
<th>Number of baskets</th> |
359 |
<th>Number of baskets</th> |
358 |
<th>Action</th> |
360 |
<th>Action</th> |
359 |
</tr> |
361 |
</tr> |
360 |
</thead> |
362 |
</thead> |
361 |
<tbody> |
363 |
<tbody> |
362 |
[% FOREACH basketgroup IN basketgroups %] |
364 |
[% FOREACH basketgroup IN basketgroups %] |
363 |
[% IF ( basketgroup.closed ) %] |
365 |
[% IF ( basketgroup.closed ) %] |
364 |
<tr> |
366 |
<tr> |
365 |
<td> |
367 |
<td> |
366 |
[% IF ( basketgroup.name ) %] |
368 |
[% IF ( basketgroup.name ) %] |
367 |
[% basketgroup.name %] |
369 |
[% basketgroup.name %] |
368 |
[% ELSE %] |
370 |
[% ELSE %] |
369 |
Basket group no. [% basketgroup.id %] |
371 |
Basket group no. [% basketgroup.id %] |
370 |
[% END %] |
372 |
[% END %] |
371 |
</td> |
373 |
</td> |
372 |
<td>[% basketgroup.id %]</td> |
374 |
<td>[% basketgroup.id %]</td> |
373 |
<td>[% basketgroup.billingplace | $KohaBranchName %]</td> |
375 |
<td>[% basketgroup.billingplace | $KohaBranchName %]</td> |
374 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% basketgroup.deliveryplace | $KohaBranchName %][% END %]</td> |
376 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% basketgroup.deliveryplace | $KohaBranchName %][% END %]</td> |
375 |
<td>[% basketgroup.basketsqty %]</td> |
377 |
<td>[% basketgroup.basketsqty %]</td> |
376 |
<td> |
378 |
<td> |
377 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="View" /></form> |
379 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="View" /></form> |
378 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="reopen" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Reopen" /></form> |
380 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="reopen" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Reopen" /></form> |
379 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="print" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Print" /></form> |
381 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="print" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Print" /></form> |
380 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="export" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Export as CSV" /></form> |
382 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="export" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Export as CSV" /></form> |
381 |
</td> |
383 |
</td> |
382 |
</tr> |
384 |
</tr> |
383 |
[% END %] |
385 |
[% END %] |
384 |
[% END %] |
386 |
[% END %] |
385 |
</tbody> |
387 |
</tbody> |
386 |
</table> |
388 |
</table> |
387 |
</div> |
389 |
</div> |
|
|
390 |
</div> |
391 |
[% END %] |
392 |
</div> |
388 |
</div> |
393 |
</div> |
389 |
[% END %] |
394 |
<div class="yui-b"> |
390 |
</div> |
395 |
[% IF ( booksellerid ) %] |
391 |
</div> |
396 |
[% INCLUDE 'vendor-menu.inc' %] |
392 |
<div class="yui-b"> |
397 |
[% END %] |
393 |
[% IF ( booksellerid ) %] |
398 |
[% INCLUDE 'acquisitions-menu.inc' %] |
394 |
[% INCLUDE 'vendor-menu.inc' %] |
399 |
</div> |
395 |
[% END %] |
400 |
</div> |
396 |
[% INCLUDE 'acquisitions-menu.inc' %] |
401 |
[% INCLUDE 'intranet-bottom.inc' %] |
397 |
</div> |
|
|
398 |
</div> |
399 |
[% INCLUDE 'intranet-bottom.inc' %] |
400 |
- |
|
|