Lines 1-8
Link Here
|
1 |
[% USE Asset %] |
1 |
[% USE Asset %] |
2 |
[% USE Branches %] |
2 |
[% USE Branches %] |
3 |
[% USE Price %] |
3 |
[% USE Price %] |
|
|
4 |
[% USE KohaDates %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
<title>Koha › Basket grouping for [% booksellername |html %]</title> |
6 |
[% IF booksellerid %] |
|
|
7 |
<title>Koha › Basket groups for [% booksellername |html %]</title> |
8 |
[% ELSE %] |
9 |
<title>Koha › Basket groups</title> |
10 |
[% END %] |
6 |
[% Asset.css("css/datatables.css") %] |
11 |
[% Asset.css("css/datatables.css") %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
12 |
[% INCLUDE 'doc-head-close.inc' %] |
8 |
[% INCLUDE 'datatables.inc' %] |
13 |
[% INCLUDE 'datatables.inc' %] |
Lines 11-17
Link Here
|
11 |
[% Asset.js("lib/yui/container/container_core-min.js") %] |
16 |
[% Asset.js("lib/yui/container/container_core-min.js") %] |
12 |
[% Asset.js("lib/yui/menu/menu-min.js") %] |
17 |
[% Asset.js("lib/yui/menu/menu-min.js") %] |
13 |
[% Asset.js("js/basketgroup.js") %] |
18 |
[% Asset.js("js/basketgroup.js") %] |
14 |
[% IF ( grouping ) %] |
|
|
15 |
[% Asset.js("lib/yui/yahoo-dom-event/yahoo-dom-event.js") %] |
19 |
[% Asset.js("lib/yui/yahoo-dom-event/yahoo-dom-event.js") %] |
16 |
[% Asset.js("lib/yui/animation/animation-min.js") %] |
20 |
[% Asset.js("lib/yui/animation/animation-min.js") %] |
17 |
[% Asset.js("lib/yui/dragdrop/dragdrop-min.js") %] |
21 |
[% Asset.js("lib/yui/dragdrop/dragdrop-min.js") %] |
Lines 87-93
fieldset.various li {
Link Here
|
87 |
} |
91 |
} |
88 |
|
92 |
|
89 |
</style> |
93 |
</style> |
90 |
[% END %] |
|
|
91 |
<script type="text/javascript"> |
94 |
<script type="text/javascript"> |
92 |
//<![CDATA[ |
95 |
//<![CDATA[ |
93 |
YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true); |
96 |
YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true); |
Lines 108-127
function submitForm(form) {
Link Here
|
108 |
} |
111 |
} |
109 |
} |
112 |
} |
110 |
|
113 |
|
111 |
$(document).ready(function() { |
|
|
112 |
$("#basket_groups").tabs(); |
113 |
|
114 |
$("table").dataTable($.extend(true, {}, dataTablesDefaults, { |
115 |
"aoColumnDefs": [ |
116 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
117 |
], |
118 |
"bAutoWidth": false, |
119 |
"sPaginationType": "four_button" |
120 |
} )); |
121 |
|
122 |
}); |
123 |
|
124 |
|
125 |
//]]> |
114 |
//]]> |
126 |
</script> |
115 |
</script> |
127 |
</head> |
116 |
</head> |
Lines 130-390
function submitForm(form) {
Link Here
|
130 |
[% INCLUDE 'acquisitions-search.inc' %] |
119 |
[% INCLUDE 'acquisitions-search.inc' %] |
131 |
|
120 |
|
132 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › |
121 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › |
133 |
[% IF ( grouping ) %] |
122 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> |
134 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]">Basket grouping</a> › Add basket group for [% booksellername |html %]</div> |
123 |
› |
135 |
[% ELSE %] |
124 |
<a href="/cgi-bin/koha/acqui/basketgroups.pl?booksellerid=[% booksellerid %]">Basket groups</a> |
136 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › Basket grouping</div> |
125 |
› |
137 |
[% END %] |
126 |
Add basket group for [% booksellername |html %] |
|
|
127 |
</div> |
138 |
|
128 |
|
139 |
<div id="doc3" class="yui-t2"> |
129 |
<div id="doc3" class="yui-t2"> |
140 |
<div id="bd"> |
130 |
<div id="bd"> |
141 |
<div id="yui-main"> |
131 |
<div id="yui-main"> |
142 |
<div class="yui-b"> |
132 |
<div class="yui-b"> |
143 |
[% IF ( grouping ) %] |
133 |
[% IF (closedbg) %] |
144 |
[% IF (closedbg) %] |
134 |
<div id="toolbar" class="btn-toolbar"> |
145 |
<div id="toolbar" class="btn-toolbar"> |
135 |
<div class="btn-group"><a href="[% script_name %]?op=reopen&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]&mode=singlebg" class="btn btn-default btn-sm" id="reopenbutton"><i class="fa fa-download"></i> Reopen this basket group</a></div> |
146 |
<div class="btn-group"><a href="[% script_name %]?op=reopen&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]&mode=singlebg" class="btn btn-default btn-sm" id="reopenbutton"><i class="fa fa-download"></i> Reopen this basket group</a></div> |
136 |
<div class="btn-group"><a href="[% script_name %]?op=export&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="exportbutton"><i class="fa fa-download"></i> Export this basket group as CSV</a></div> |
147 |
<div class="btn-group"><a href="[% script_name %]?op=export&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="exportbutton"><i class="fa fa-download"></i> Export this basket group as CSV</a></div> |
137 |
<div class="btn-group"><a href="[% script_name %]?op=print&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Print this basket group in PDF</a></div> |
148 |
<div class="btn-group"><a href="[% script_name %]?op=print&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Print this basket group in PDF</a></div> |
138 |
<div class="btn-group"><a href="[% script_name %]?op=ediprint&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Generate EDIFACT order</a></div> |
149 |
<div class="btn-group"><a href="[% script_name %]?op=ediprint&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Generate EDIFACT order</a></div> |
139 |
</div> |
|
|
140 |
[% END %] |
141 |
[% IF (name && closedbg) %] |
142 |
<h1>Basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
143 |
[% ELSIF (name) %] |
144 |
<h1>Edit basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
145 |
[% ELSE %] |
146 |
<h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
147 |
[% END %] |
148 |
<div id="basketgroupcolumns" class="yui-g"> |
149 |
[% UNLESS (closedbg) %] |
150 |
<div class="yui-u"> |
151 |
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups"> |
152 |
<div id="groups"> |
153 |
<fieldset class="brief"> |
154 |
<div class="workarea_alt" > |
155 |
<h3>Ungrouped baskets</h3> |
156 |
<ul id="ungrouped" class="draglist_alt"> |
157 |
[% IF ( baskets ) %] |
158 |
[% FOREACH basket IN baskets %] |
159 |
<li class="ungrouped" id="b-[% basket.basketno %]" > |
160 |
<a href="basket.pl?basketno=[% basket.basketno %]"> |
161 |
[% IF ( basket.basketname ) %] |
162 |
[% basket.basketname %] |
163 |
[% ELSE %] |
164 |
No name, basketnumber: [% basket.basketno %] |
165 |
[% END %] |
166 |
</a>, <br /> |
167 |
Total: [% basket.total | $Price %] |
168 |
<input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" /> |
169 |
</li> |
170 |
[% END %] |
171 |
[% END %] |
172 |
</ul> |
173 |
</div> |
174 |
</fieldset> |
175 |
</div> |
176 |
</form> |
150 |
</div> |
177 |
</div> |
151 |
[% END %] |
178 |
[% END %] |
152 |
[% IF (name && closedbg) %] |
179 |
<div class="yui-u first"> |
153 |
<h1>Basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
180 |
<form action="" method="post" id="groupingform" onsubmit="return submitForm(this)"> |
154 |
[% ELSIF (name) %] |
181 |
<fieldset id="various" class="brief"> |
155 |
<h1>Edit basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
182 |
<ol> |
156 |
[% ELSE %] |
183 |
[% UNLESS (closedbg) %] |
157 |
<h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
184 |
<li> |
158 |
[% END %] |
185 |
<label for="basketgroupname">Basket group name:</label> |
159 |
<div id="basketgroupcolumns" class="yui-g"> |
186 |
<input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" /> |
160 |
[% UNLESS (closedbg) %] |
187 |
</li> |
161 |
<div class="yui-u"> |
188 |
[% ELSE %] |
162 |
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups"> |
189 |
<input type="hidden" name="basketgroupname" id="basketgroupname" value="[% name %]" /> |
163 |
<div id="groups"> |
190 |
[% END %] |
164 |
<fieldset class="brief"> |
191 |
<li> |
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 | $Price %] |
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) %] |
192 |
[% UNLESS (closedbg) %] |
195 |
<li> |
193 |
<label for="billingplace">Billing place:</label> |
196 |
<label for="basketgroupname">Basket group name:</label> |
194 |
<select name="billingplace" id="billingplace"> |
197 |
<input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" /> |
195 |
<option value="">--</option> |
198 |
</li> |
196 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %] |
|
|
197 |
</select> |
199 |
[% ELSE %] |
198 |
[% ELSE %] |
200 |
<input type="hidden" name="basketgroupname" id="basketgroupname" value="[% name %]" /> |
199 |
<span class="label">Billing place:</span> |
|
|
200 |
<input name="billingplace" id="billingplace" type ="hidden" value="[% billingplace %]" />[% Branches.GetName( billingplace ) %] |
201 |
[% END %] |
201 |
[% END %] |
|
|
202 |
</li> |
203 |
[% UNLESS (closedbg) %] |
202 |
<li> |
204 |
<li> |
203 |
[% UNLESS (closedbg) %] |
205 |
<label for="deliveryplace">Delivery place:</label> |
204 |
<label for="billingplace">Billing place:</label> |
206 |
<select name="deliveryplace" id="deliveryplace"> |
205 |
<select name="billingplace" id="billingplace"> |
207 |
<option value="">--</option> |
206 |
<option value="">--</option> |
208 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %] |
207 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %] |
209 |
<select> |
208 |
</select> |
|
|
209 |
[% ELSE %] |
210 |
<span class="label">Billing place:</span> |
211 |
<input name="billingplace" id="billingplace" type ="hidden" value="[% billingplace %]" />[% Branches.GetName( billingplace ) %] |
212 |
[% END %] |
213 |
</li> |
210 |
</li> |
214 |
[% UNLESS (closedbg) %] |
211 |
<li><p>or</p></li> |
215 |
<li> |
212 |
<li> |
216 |
<label for="deliveryplace">Delivery place:</label> |
213 |
<label for="freedeliveryplace">Delivery place:</label> |
217 |
<select name="deliveryplace" id="deliveryplace"> |
214 |
<textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea> |
218 |
<option value="">--</option> |
215 |
</li> |
219 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %] |
216 |
[% ELSE %] |
220 |
<select> |
|
|
221 |
</li> |
222 |
<li><p>or</p></li> |
223 |
<li> |
224 |
<label for="freedeliveryplace">Delivery place:</label> |
225 |
<textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea> |
226 |
</li> |
227 |
[% ELSE %] |
228 |
<li> |
229 |
<span class="label">Delivery place:</span> |
230 |
[% IF (freedeliveryplace) %] |
231 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="[% freedeliveryplace %]" />[% freedeliveryplace %] |
232 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="" /> |
233 |
[% ELSE %] |
234 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="[% deliveryplace %]" />[% Branches.GetName( deliveryplace ) %] |
235 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="" /> |
236 |
[% END %] |
237 |
</li> |
238 |
[% END %] |
239 |
<li> |
217 |
<li> |
240 |
[% UNLESS (closedbg) %] |
218 |
<span class="label">Delivery place:</span> |
241 |
<label for="deliverycomment">Delivery comment:</label> |
219 |
[% IF (freedeliveryplace) %] |
242 |
<textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea> |
220 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="[% freedeliveryplace %]" />[% freedeliveryplace %] |
|
|
221 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="" /> |
243 |
[% ELSE %] |
222 |
[% ELSE %] |
244 |
<span class="label">Delivery comment:</span>[% deliverycomment %] |
223 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="[% deliveryplace %]" />[% Branches.GetName( deliveryplace ) %] |
245 |
<input name="deliverycomment" id="deliverycomment" type="hidden" value = "[% deliverycomment %]" /> |
224 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="" /> |
246 |
[% END %] |
225 |
[% END %] |
247 |
</li> |
226 |
</li> |
248 |
<li> |
227 |
[% END %] |
249 |
<span class="label">Baskets in this group:</span> |
228 |
<li> |
250 |
[% UNLESS (closedbg) %] |
229 |
[% UNLESS (closedbg) %] |
251 |
<ul class="draglist" id="bg"> |
230 |
<label for="deliverycomment">Delivery comment:</label> |
252 |
[% ELSE %] |
231 |
<textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea> |
253 |
<ul> |
232 |
[% ELSE %] |
254 |
[% END %] |
233 |
<span class="label">Delivery comment:</span>[% deliverycomment %] |
255 |
[% FOREACH selectedbasket IN selectedbaskets %] |
234 |
<input name="deliverycomment" id="deliverycomment" type="hidden" value = "[% deliverycomment %]" /> |
256 |
<li class="grouped" id="b-[% selectedbasket.basketno %]" > |
235 |
[% END %] |
257 |
<a href="basket.pl?basketno=[% selectedbasket.basketno %]"> |
|
|
258 |
[% IF ( selectedbasket.basketname ) %] |
259 |
[% selectedbasket.basketname %] |
260 |
[% ELSE %] |
261 |
No name, basketnumber: [% selectedbasket.basketno %] |
262 |
[% END %] |
263 |
</a>, <br /> |
264 |
Total: [% selectedbasket.total | $Price %] |
265 |
<input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" /> |
266 |
</li> |
267 |
[% END %] |
268 |
</ul> |
269 |
</li> |
236 |
</li> |
|
|
237 |
<li> |
238 |
<span class="label">Baskets in this group:</span> |
270 |
[% UNLESS (closedbg) %] |
239 |
[% UNLESS (closedbg) %] |
271 |
<li><label><input type="checkbox" id="closedbg" name="closedbg" />Close basket group</label></li> |
240 |
<ul class="draglist" id="bg"> |
272 |
[% ELSE %] |
241 |
[% ELSE %] |
273 |
<input type="hidden" id="closedbg" name="closedbg" value ="1"/> |
242 |
<ul> |
274 |
[% END %] |
243 |
[% END %] |
275 |
</ol> |
244 |
[% FOREACH selectedbasket IN selectedbaskets %] |
276 |
</fieldset> |
245 |
<li class="grouped" id="b-[% selectedbasket.basketno %]" > |
277 |
[% UNLESS (closedbg) %] |
246 |
<a href="basket.pl?basketno=[% selectedbasket.basketno %]"> |
278 |
<fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
247 |
[% IF ( selectedbasket.basketname ) %] |
279 |
[% IF ( basketgroupid ) %] |
248 |
[% selectedbasket.basketname %] |
280 |
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" /> |
|
|
281 |
[% END %] |
282 |
<input type="hidden" name="op" value="attachbasket" /> |
283 |
<input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a> |
284 |
</fieldset> |
285 |
[% END %] |
286 |
</form> |
287 |
</div> |
288 |
</div> |
289 |
[% ELSE %] |
290 |
<div id="toolbar" class="btn-toolbar"> |
291 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="newbasketgroup"><i class="fa fa-plus"></i> New basket group</a></div> |
292 |
</div> |
293 |
<h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
294 |
<div id="basket_groups" class="toptabs"> |
295 |
<ul class="ui-tabs-nav"> |
296 |
[% UNLESS ( listclosed) %]<li class="ui-tabs-active"><a href="#opened">Open</a></li> |
297 |
[% ELSE%]<li><a href="#opened">Open</a></li>[% END %] |
298 |
[% IF ( listclosed) %]<li class="ui-tabs-active"><a href="#closed">Closed</a></li> |
299 |
[% ELSE %]<li><a href="#closed">Closed</a></li>[% END %] |
300 |
</ul> |
301 |
<div id="opened"> |
302 |
<table id="basket_group_opened"> |
303 |
<thead> |
304 |
<tr> |
305 |
<th>Name</th> |
306 |
<th>Number</th> |
307 |
<th>Billing place</th> |
308 |
<th>Delivery place</th> |
309 |
<th>Number of baskets</th> |
310 |
<th>Action</th> |
311 |
</tr> |
312 |
</thead> |
313 |
<tbody> |
314 |
[% FOREACH basketgroup IN basketgroups %] |
315 |
[% UNLESS ( basketgroup.closed ) %] |
316 |
<tr> |
317 |
<td>[% IF ( basketgroup.name ) %] |
318 |
[% basketgroup.name %] |
319 |
[% ELSE %] |
320 |
Basket group no. [% basketgroup.id %] |
321 |
[% END %] |
322 |
</td> |
323 |
<td>[% basketgroup.id %]</td> |
324 |
<td>[% Branches.GetName( basketgroup.billingplace ) %]</td> |
325 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td> |
326 |
<td>[% basketgroup.basketsqty %]</td> |
327 |
<td> |
328 |
<input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and export as PDF" /> |
329 |
<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> |
330 |
[% UNLESS basketgroup.basketsqty %] |
331 |
<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> |
332 |
[% END %] |
333 |
</td> |
334 |
</tr> |
335 |
[% END %] |
336 |
[% END %] |
337 |
</tbody> |
338 |
</table> |
339 |
</div> |
340 |
<div id="closed"> |
341 |
<table id="basket_group_closed"> |
342 |
<thead> |
343 |
<tr> |
344 |
<th>Name</th> |
345 |
<th>Number</th> |
346 |
<th>Billing place</th> |
347 |
<th>Delivery place</th> |
348 |
<th>Number of baskets</th> |
349 |
<th>Action</th> |
350 |
</tr> |
351 |
</thead> |
352 |
<tbody> |
353 |
[% FOREACH basketgroup IN basketgroups %] |
354 |
[% IF ( basketgroup.closed ) %] |
355 |
<tr> |
356 |
<td> |
357 |
[% IF ( basketgroup.name ) %] |
358 |
[% basketgroup.name %] |
359 |
[% ELSE %] |
249 |
[% ELSE %] |
360 |
Basket group no. [% basketgroup.id %] |
250 |
No name, basketnumber: [% selectedbasket.basketno %] |
361 |
[% END %] |
251 |
[% END %] |
362 |
</td> |
252 |
</a>, <br /> |
363 |
<td>[% basketgroup.id %]</td> |
253 |
Total: [% selectedbasket.total | $Price %] |
364 |
<td>[% Branches.GetName( basketgroup.billingplace ) %]</td> |
254 |
<input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" /> |
365 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td> |
255 |
</li> |
366 |
<td>[% basketgroup.basketsqty %]</td> |
256 |
[% END %] |
367 |
<td> |
257 |
</ul> |
368 |
<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> |
258 |
</li> |
369 |
<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> |
259 |
[% UNLESS (closedbg) %] |
370 |
<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="Export as PDF" /></form> |
260 |
<li><label><input type="checkbox" id="closedbg" name="closedbg" />Close basket group</label></li> |
371 |
<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> |
261 |
[% ELSE %] |
372 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="ediprint" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Generate EDIFACT order" /></form> |
262 |
<input type="hidden" id="closedbg" name="closedbg" value ="1"/> |
373 |
</td> |
|
|
374 |
</tr> |
375 |
[% END %] |
263 |
[% END %] |
|
|
264 |
</ol> |
265 |
</fieldset> |
266 |
[% UNLESS (closedbg) %] |
267 |
<fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
268 |
[% IF ( basketgroupid ) %] |
269 |
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" /> |
376 |
[% END %] |
270 |
[% END %] |
377 |
</tbody> |
271 |
<input type="hidden" name="op" value="attachbasket" /> |
378 |
</table> |
272 |
<input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a> |
379 |
</div> |
273 |
</fieldset> |
|
|
274 |
[% END %] |
275 |
</form> |
380 |
</div> |
276 |
</div> |
381 |
[% END %] |
277 |
</div> |
382 |
</div> |
278 |
</div> |
383 |
</div> |
279 |
</div> |
384 |
<div class="yui-b"> |
280 |
<div class="yui-b"> |
385 |
[% IF ( booksellerid ) %] |
281 |
[% INCLUDE 'vendor-menu.inc' %] |
386 |
[% INCLUDE 'vendor-menu.inc' %] |
|
|
387 |
[% END %] |
388 |
[% INCLUDE 'acquisitions-menu.inc' %] |
282 |
[% INCLUDE 'acquisitions-menu.inc' %] |
389 |
</div> |
283 |
</div> |
390 |
</div> |
284 |
</div> |