Lines 1-75
Link Here
|
1 |
<script type="text/javascript"> |
1 |
<div id="toolbar" class="btn-toolbar"> |
2 |
//<![CDATA[ |
2 |
<a class="btn btn-small" id="layouts" href="/cgi-bin/koha/patroncards/edit-layout.pl?op=new">New layout</a> |
3 |
// prepare DOM for YUI Toolbar |
3 |
<a class="btn btn-small" id="templates" href="/cgi-bin/koha/patroncards/edit-template.pl?op=new">New template</a> |
4 |
$(document).ready(function() { |
4 |
<a class="btn btn-small" id="profiles" href="/cgi-bin/koha/patroncards/edit-profile.pl?op=new">New profile</a> |
5 |
$("#layoutsc").empty(); |
5 |
<a class="btn btn-small" id="batches" href="/cgi-bin/koha/patroncards/edit-batch.pl?op=new">New batch</a> |
6 |
$("#templatesc").empty(); |
|
|
7 |
$("#profilesc").empty(); |
8 |
$("#batches").empty(); |
9 |
yuiToolbar(); |
10 |
}); |
11 |
|
12 |
// YUI Toolbar Functions |
13 |
function yuiToolbar() { |
14 |
var layouts = [ |
15 |
{text: _("Manage layouts"), url: "/cgi-bin/koha/patroncards/manage.pl?card_element=layout" }, |
16 |
{text: _("New layout"), url: "/cgi-bin/koha/patroncards/edit-layout.pl?op=new" } |
17 |
]; |
18 |
|
19 |
var templates = [ |
20 |
{text: _("Manage templates"), url: "/cgi-bin/koha/patroncards/manage.pl?card_element=template" }, |
21 |
{text: _("New template"), url: "/cgi-bin/koha/patroncards/edit-template.pl?op=new" } |
22 |
]; |
23 |
|
24 |
var profiles = [ |
25 |
{text: _("Manage profiles"), url: "/cgi-bin/koha/patroncards/manage.pl?card_element=profile" }, |
26 |
{text: _("New profile"), url: "/cgi-bin/koha/patroncards/edit-profile.pl?op=new" } |
27 |
]; |
28 |
|
29 |
var batches = [ |
30 |
{text: _("Manage batches"), url: "/cgi-bin/koha/patroncards/manage.pl?card_element=batch" }, |
31 |
{text: _("New batch"), url: "/cgi-bin/koha/patroncards/edit-batch.pl?op=new" } |
32 |
]; |
33 |
|
34 |
new YAHOO.widget.Button({ |
35 |
type: "menu", |
36 |
label: _("Layouts"), |
37 |
name: "layouts", |
38 |
menu: layouts, |
39 |
container: "layoutsc" |
40 |
}); |
41 |
|
42 |
new YAHOO.widget.Button({ |
43 |
type: "menu", |
44 |
label: _("Templates"), |
45 |
name: "templates", |
46 |
menu: templates, |
47 |
container: "templatesc" |
48 |
}); |
49 |
|
50 |
new YAHOO.widget.Button({ |
51 |
type: "menu", |
52 |
label: _("Profiles"), |
53 |
name: "profiles", |
54 |
menu: profiles, |
55 |
container: "profilesc" |
56 |
}); |
57 |
|
58 |
new YAHOO.widget.Button({ |
59 |
type: "menu", |
60 |
label: _("Batches"), |
61 |
name: "batches", |
62 |
menu: batches, |
63 |
container: "batchesc" |
64 |
}); |
65 |
} |
66 |
//]]> |
67 |
</script> |
68 |
<div id="toolbar"> |
69 |
<ul class="toolbar"> |
70 |
<li id="layoutsc"><a id="layouts" href="#">Layouts</a></li> |
71 |
<li id="templatesc"><a id="templates" href="#">Templates</a></li> |
72 |
<li id="profilesc"><a id="profiles" href="#">Profiles</a></li> |
73 |
<li id="batchesc"><a id="batches" href="#">Batches</a></li> |
74 |
</ul> |
75 |
</div> |
6 |
</div> |
76 |
- |
|
|