Lines 20-26
body {
Link Here
|
20 |
margin:0; |
20 |
margin:0; |
21 |
padding:0; |
21 |
padding:0; |
22 |
} |
22 |
} |
23 |
|
23 |
#basketgroupcolumns { |
|
|
24 |
width: 58em; |
25 |
} |
24 |
#ungrouped { |
26 |
#ungrouped { |
25 |
overflow: auto; |
27 |
overflow: auto; |
26 |
height: 400px; |
28 |
height: 400px; |
Lines 97-107
function submitForm(form) {
Link Here
|
97 |
form.appendChild(input); |
99 |
form.appendChild(input); |
98 |
} |
100 |
} |
99 |
} |
101 |
} |
100 |
// prepare DOM for YUI Toolbar |
|
|
101 |
|
102 |
|
102 |
$(document).ready(function() { |
103 |
$(document).ready(function() { |
103 |
// $("#toolbar").empty(); |
|
|
104 |
yuiToolbar(); |
105 |
$("#basket_groups").tabs(); |
104 |
$("#basket_groups").tabs(); |
106 |
|
105 |
|
107 |
$("table").dataTable($.extend(true, {}, dataTablesDefaults, { |
106 |
$("table").dataTable($.extend(true, {}, dataTablesDefaults, { |
Lines 116-149
function submitForm(form) {
Link Here
|
116 |
|
115 |
|
117 |
}); |
116 |
}); |
118 |
|
117 |
|
119 |
// YUI Toolbar Functions |
|
|
120 |
|
118 |
|
121 |
function yuiToolbar() { |
|
|
122 |
var booksellermenu = [ |
123 |
{ text: _("Vendor"), url: "/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]" }, |
124 |
{ text: _("Edit vendor"), url: "/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]&op=enter"}, |
125 |
] |
126 |
var ordersbutton = [ |
127 |
{ text: _("Manage orders"), url: "/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid %]" }, |
128 |
{ text: _("Edit uncertain prices"), url: "/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" }, |
129 |
] |
130 |
new YAHOO.widget.Button("newbasketgroup"); |
131 |
new YAHOO.widget.Button({ |
132 |
type: "menu", |
133 |
label: _("Vendor"), |
134 |
name: "booksellerbutton", |
135 |
menu: booksellermenu, |
136 |
container: "toolbar" |
137 |
}); |
138 |
|
139 |
new YAHOO.widget.Button({ |
140 |
type: "menu", |
141 |
label: _("Orders"), |
142 |
name: "ordersbutton", |
143 |
menu: ordersbutton, |
144 |
container: "toolbar" |
145 |
}); |
146 |
} |
147 |
//]]> |
119 |
//]]> |
148 |
</script> |
120 |
</script> |
149 |
</head> |
121 |
</head> |
Lines 151-169
function yuiToolbar() {
Link Here
|
151 |
[% INCLUDE 'header.inc' %] |
123 |
[% INCLUDE 'header.inc' %] |
152 |
[% INCLUDE 'acquisitions-search.inc' %] |
124 |
[% INCLUDE 'acquisitions-search.inc' %] |
153 |
|
125 |
|
154 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › Basket grouping</div> |
126 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › |
|
|
127 |
[% IF ( grouping ) %] |
128 |
<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> |
129 |
[% ELSE %] |
130 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › Basket grouping</div> |
131 |
[% END %] |
132 |
|
133 |
<div id="doc3" class="yui-t2"> |
134 |
<div id="bd"> |
135 |
<div id="yui-main"> |
136 |
<div class="yui-b"> |
155 |
|
137 |
|
156 |
<div id="doc" class="yui-t7"> |
|
|
157 |
|
158 |
<div class="yui-b"> |
159 |
<div id="toolbar"> |
160 |
<a href="?op=add&booksellerid=[% booksellerid %]" name="newbasketgroup" id="newbasketgroup">New basket group</a> |
161 |
</div> |
162 |
<h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
163 |
</div> |
164 |
[% IF ( grouping ) %] |
138 |
[% IF ( grouping ) %] |
165 |
<div id="bd"> |
139 |
<h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
166 |
<div class="yui-g"> |
140 |
<div id="basketgroupcolumns" class="yui-g"> |
167 |
<div class="yui-u"> |
141 |
<div class="yui-u"> |
168 |
|
142 |
|
169 |
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups"> |
143 |
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups"> |
Lines 249-262
function yuiToolbar() {
Link Here
|
249 |
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" /> |
223 |
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" /> |
250 |
[% END %] |
224 |
[% END %] |
251 |
<input type="hidden" name="op" value="attachbasket" /> |
225 |
<input type="hidden" name="op" value="attachbasket" /> |
252 |
<input type="submit" value="Save" /> |
226 |
<input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a> |
253 |
</fieldset> |
227 |
</fieldset> |
254 |
</form> |
228 |
</form> |
255 |
</div> |
229 |
</div> |
256 |
</div> |
230 |
</div> |
257 |
</div> |
|
|
258 |
[% ELSE %] |
231 |
[% ELSE %] |
259 |
<div class="yui-g"> |
232 |
|
|
|
233 |
<div id="toolbar" class="btn-toolbar"> |
234 |
<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> |
235 |
</div> |
236 |
<h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
237 |
|
260 |
<div id="basket_groups" class="toptabs"> |
238 |
<div id="basket_groups" class="toptabs"> |
261 |
<ul class="ui-tabs-nav"> |
239 |
<ul class="ui-tabs-nav"> |
262 |
[% UNLESS ( closed ) %]<li class="ui-tabs-selected"><a href="#opened">Open</a></li> |
240 |
[% UNLESS ( closed ) %]<li class="ui-tabs-selected"><a href="#opened">Open</a></li> |
Lines 282-292
function yuiToolbar() {
Link Here
|
282 |
[% END %]</a> |
260 |
[% END %]</a> |
283 |
</td> |
261 |
</td> |
284 |
<td> |
262 |
<td> |
285 |
<span> |
|
|
286 |
<input type="button" onclick="closeandprint([% basketgroup.id %])" value="Close and print" /> |
263 |
<input type="button" onclick="closeandprint([% basketgroup.id %])" value="Close and print" /> |
287 |
<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> |
264 |
<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> |
288 |
<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> |
265 |
<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> |
289 |
</span> |
|
|
290 |
</td> |
266 |
</td> |
291 |
</tr> |
267 |
</tr> |
292 |
[% END %] |
268 |
[% END %] |
Lines 323-330
function yuiToolbar() {
Link Here
|
323 |
</tbody> |
299 |
</tbody> |
324 |
</table> |
300 |
</table> |
325 |
</div> |
301 |
</div> |
326 |
</div> |
302 |
</div> |
327 |
</div> |
|
|
328 |
[% END %] |
303 |
[% END %] |
329 |
|
304 |
</div> |
|
|
305 |
</div> |
306 |
<div class="yui-b"> |
307 |
[% IF ( booksellerid ) %] |
308 |
[% INCLUDE 'vendor-menu.inc' %] |
309 |
[% END %] |
310 |
[% INCLUDE 'acquisitions-menu.inc' %] |
311 |
</div> |
312 |
</div> |
330 |
[% INCLUDE 'intranet-bottom.inc' %] |
313 |
[% INCLUDE 'intranet-bottom.inc' %] |
331 |
- |
|
|