Lines 1-4
Link Here
|
1 |
[% USE Branches %] |
1 |
[% USE Branches %] |
|
|
2 |
[% USE KohaDates %] |
3 |
|
2 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
<title>Koha › Basket grouping for [% booksellername |html %]</title> |
5 |
<title>Koha › Basket grouping for [% booksellername |html %]</title> |
4 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
6 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
Lines 96-111
var MSG_SAVE_BEFORE_PRINTING = _("You need to save the page before printing");
Link Here
|
96 |
var MSG_REOPEN_BASKETGROUP = _("reopen basketgroup"); |
98 |
var MSG_REOPEN_BASKETGROUP = _("reopen basketgroup"); |
97 |
var MSG_FILE_DOWNLOAD_ERROR = _("Error downloading the file"); |
99 |
var MSG_FILE_DOWNLOAD_ERROR = _("Error downloading the file"); |
98 |
|
100 |
|
99 |
function submitForm(form) { |
|
|
100 |
if (form.close.checked == true) { |
101 |
var input = document.createElement("input"); |
102 |
input.setAttribute("type", "hidden"); |
103 |
input.setAttribute("name", "closed"); |
104 |
input.setAttribute("value", "1"); |
105 |
form.appendChild(input); |
106 |
} |
107 |
} |
108 |
|
109 |
$(document).ready(function() { |
101 |
$(document).ready(function() { |
110 |
$("#basket_groups").tabs(); |
102 |
$("#basket_groups").tabs(); |
111 |
|
103 |
|
Lines 139-145
function submitForm(form) {
Link Here
|
139 |
<div id="yui-main"> |
131 |
<div id="yui-main"> |
140 |
<div class="yui-b"> |
132 |
<div class="yui-b"> |
141 |
[% IF ( grouping ) %] |
133 |
[% IF ( grouping ) %] |
142 |
[% IF (closedbg) %] |
134 |
[% IF (bg_closedate) %] |
143 |
<div id="toolbar" class="btn-toolbar"> |
135 |
<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> |
136 |
<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> |
137 |
<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> |
Lines 148-154
function submitForm(form) {
Link Here
|
148 |
[% ELSE %] |
140 |
[% ELSE %] |
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> |
141 |
<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> |
150 |
[% END %] |
142 |
[% END %] |
151 |
[% IF (name && closedbg) %] |
143 |
[% IF (name && bg_closedate) %] |
152 |
<h1>Basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
144 |
<h1>Basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
153 |
[% ELSIF (name) %] |
145 |
[% ELSIF (name) %] |
154 |
<h1>Edit basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
146 |
<h1>Edit basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
Lines 156-162
function submitForm(form) {
Link Here
|
156 |
<h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
148 |
<h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
157 |
[% END %] |
149 |
[% END %] |
158 |
<div id="basketgroupcolumns" class="yui-g"> |
150 |
<div id="basketgroupcolumns" class="yui-g"> |
159 |
[% UNLESS (closedbg) %] |
151 |
[% UNLESS (bg_closedate) %] |
160 |
<div class="yui-u"> |
152 |
<div class="yui-u"> |
161 |
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups"> |
153 |
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups"> |
162 |
<div id="groups"> |
154 |
<div id="groups"> |
Lines 190-196
function submitForm(form) {
Link Here
|
190 |
<form action="" method="post" id="groupingform" onsubmit="return submitForm(this)"> |
182 |
<form action="" method="post" id="groupingform" onsubmit="return submitForm(this)"> |
191 |
<fieldset id="various" class="brief"> |
183 |
<fieldset id="various" class="brief"> |
192 |
<ol> |
184 |
<ol> |
193 |
[% UNLESS (closedbg) %] |
185 |
[% IF (bg_creationdate) %] |
|
|
186 |
<li> |
187 |
<label for="bg_creationdate">Created on:</label> |
188 |
<span>[% bg_creationdate | $KohaDates %]</span> |
189 |
</li> |
190 |
<input type="hidden" id="bg_creationdate" name="bg_creationdate" value = "[% bg_creationdate %]"/> |
191 |
[% END %] |
192 |
[% IF (bg_closedate ) %] |
193 |
<li> |
194 |
<label for="bg_closedate">Closed on:</label> |
195 |
<span>[% bg_closedate | $KohaDates %]</span> |
196 |
</li> |
197 |
<input type="hidden" id="bg_closedate" name="bg_closedate" value = "[% bg_closedate %]"/> |
198 |
[% END %] |
199 |
[% UNLESS (bg_closedate) %] |
194 |
<li> |
200 |
<li> |
195 |
<label for="basketgroupname">Basket group name:</label> |
201 |
<label for="basketgroupname">Basket group name:</label> |
196 |
<input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" /> |
202 |
<input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" /> |
Lines 199-205
function submitForm(form) {
Link Here
|
199 |
<input type="hidden" name="basketgroupname" id="basketgroupname" value="[% name %]" /> |
205 |
<input type="hidden" name="basketgroupname" id="basketgroupname" value="[% name %]" /> |
200 |
[% END %] |
206 |
[% END %] |
201 |
<li> |
207 |
<li> |
202 |
[% UNLESS (closedbg) %] |
208 |
[% UNLESS (bg_closedate) %] |
203 |
<label for="billingplace">Billing place:</label> |
209 |
<label for="billingplace">Billing place:</label> |
204 |
<select name="billingplace" id="billingplace" style="width:13em;"> |
210 |
<select name="billingplace" id="billingplace" style="width:13em;"> |
205 |
<option value="">--</option> |
211 |
<option value="">--</option> |
Lines 217-223
function submitForm(form) {
Link Here
|
217 |
[% END %] |
223 |
[% END %] |
218 |
[% END %] |
224 |
[% END %] |
219 |
</li> |
225 |
</li> |
220 |
[% UNLESS (closedbg) %] |
226 |
[% UNLESS (bg_closedate) %] |
221 |
<li> |
227 |
<li> |
222 |
<label for="deliveryplace">Delivery place:</label> |
228 |
<label for="deliveryplace">Delivery place:</label> |
223 |
<select name="deliveryplace" id="deliveryplace" style="width:13em;"> |
229 |
<select name="deliveryplace" id="deliveryplace" style="width:13em;"> |
Lines 250-256
function submitForm(form) {
Link Here
|
250 |
</li> |
256 |
</li> |
251 |
[% END %] |
257 |
[% END %] |
252 |
<li> |
258 |
<li> |
253 |
[% UNLESS (closedbg) %] |
259 |
[% UNLESS (bg_closedate) %] |
254 |
<label for="deliverycomment">Delivery comment:</label> |
260 |
<label for="deliverycomment">Delivery comment:</label> |
255 |
<textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea> |
261 |
<textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea> |
256 |
[% ELSE %] |
262 |
[% ELSE %] |
Lines 260-266
function submitForm(form) {
Link Here
|
260 |
</li> |
266 |
</li> |
261 |
<li> |
267 |
<li> |
262 |
<span class="label">Baskets in this group:</span> |
268 |
<span class="label">Baskets in this group:</span> |
263 |
[% UNLESS (closedbg) %] |
269 |
[% UNLESS (bg_closedate) %] |
264 |
<ul class="draglist" id="bg"> |
270 |
<ul class="draglist" id="bg"> |
265 |
[% ELSE %] |
271 |
[% ELSE %] |
266 |
<ul> |
272 |
<ul> |
Lines 280-293
function submitForm(form) {
Link Here
|
280 |
[% END %] |
286 |
[% END %] |
281 |
</ul> |
287 |
</ul> |
282 |
</li> |
288 |
</li> |
283 |
[% UNLESS (closedbg) %] |
289 |
[% UNLESS (bg_closedate) %] |
284 |
<li><label><input type="checkbox" id="closedbg" name="closedbg" />Close basket group</label></li> |
290 |
<li><label><input type="checkbox" id="close" name="close" value="1" />Close basket group</label></li> |
285 |
[% ELSE %] |
|
|
286 |
<input type="hidden" id="closedbg" name="closedbg" value ="1"/> |
287 |
[% END %] |
291 |
[% END %] |
288 |
</ol> |
292 |
</ol> |
289 |
</fieldset> |
293 |
</fieldset> |
290 |
[% UNLESS (closedbg) %] |
294 |
[% UNLESS (bg_closedate) %] |
291 |
<fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
295 |
<fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
292 |
[% IF ( basketgroupid ) %] |
296 |
[% IF ( basketgroupid ) %] |
293 |
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" /> |
297 |
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" /> |
Lines 320-331
function submitForm(form) {
Link Here
|
320 |
<th>Billing place</th> |
324 |
<th>Billing place</th> |
321 |
<th>Delivery place</th> |
325 |
<th>Delivery place</th> |
322 |
<th>Number of baskets</th> |
326 |
<th>Number of baskets</th> |
|
|
327 |
<th>Created on</th> |
328 |
<th>Closed on</th> |
323 |
<th>Action</th> |
329 |
<th>Action</th> |
324 |
</tr> |
330 |
</tr> |
325 |
</thead> |
331 |
</thead> |
326 |
<tbody> |
332 |
<tbody> |
327 |
[% FOREACH basketgroup IN basketgroups %] |
333 |
[% FOREACH basketgroup IN basketgroups %] |
328 |
[% UNLESS ( basketgroup.closed ) %] |
334 |
[% UNLESS ( basketgroup.bg_closedate ) %] |
329 |
<tr> |
335 |
<tr> |
330 |
<td>[% IF ( basketgroup.name ) %] |
336 |
<td>[% IF ( basketgroup.name ) %] |
331 |
[% basketgroup.name %] |
337 |
[% basketgroup.name %] |
Lines 337-342
function submitForm(form) {
Link Here
|
337 |
<td>[% Branches.GetName( basketgroup.billingplace ) %]</td> |
343 |
<td>[% Branches.GetName( basketgroup.billingplace ) %]</td> |
338 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td> |
344 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td> |
339 |
<td>[% basketgroup.basketsqty %]</td> |
345 |
<td>[% basketgroup.basketsqty %]</td> |
|
|
346 |
<td>[% basketgroup.bg_creationdate %]</td> |
347 |
<td>[% basketgroup.bg_closedate %]</td> |
340 |
<td> |
348 |
<td> |
341 |
<input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and print" /> |
349 |
<input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and print" /> |
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> |
350 |
<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> |
Lines 357-368
function submitForm(form) {
Link Here
|
357 |
<th>Billing place</th> |
365 |
<th>Billing place</th> |
358 |
<th>Delivery place</th> |
366 |
<th>Delivery place</th> |
359 |
<th>Number of baskets</th> |
367 |
<th>Number of baskets</th> |
|
|
368 |
<th>Created on</th> |
369 |
<th>Closed on</th> |
360 |
<th>Action</th> |
370 |
<th>Action</th> |
361 |
</tr> |
371 |
</tr> |
362 |
</thead> |
372 |
</thead> |
363 |
<tbody> |
373 |
<tbody> |
364 |
[% FOREACH basketgroup IN basketgroups %] |
374 |
[% FOREACH basketgroup IN basketgroups %] |
365 |
[% IF ( basketgroup.closed ) %] |
375 |
[% IF ( basketgroup.bg_closedate ) %] |
366 |
<tr> |
376 |
<tr> |
367 |
<td> |
377 |
<td> |
368 |
[% IF ( basketgroup.name ) %] |
378 |
[% IF ( basketgroup.name ) %] |
Lines 375-380
function submitForm(form) {
Link Here
|
375 |
<td>[% Branches.GetName( basketgroup.billingplace ) %]</td> |
385 |
<td>[% Branches.GetName( basketgroup.billingplace ) %]</td> |
376 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td> |
386 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td> |
377 |
<td>[% basketgroup.basketsqty %]</td> |
387 |
<td>[% basketgroup.basketsqty %]</td> |
|
|
388 |
<td>[% basketgroup.bg_creationdate %]</td> |
389 |
<td>[% basketgroup.bg_closedate %]</td> |
378 |
<td> |
390 |
<td> |
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> |
391 |
<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> |
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> |
392 |
<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> |
381 |
- |
|
|