]> git.koha-community.org Git - koha.git/blob - koha-tmpl/intranet-tmpl/prog/en/includes/labels-toolbar.inc
Bug 6014 : MT3138 Adding some permission management to viewlog
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / labels-toolbar.inc
1 <script type="text/javascript">
2     //<![CDATA[
3     // prepare DOM for YUI Toolbar
4     $(document).ready(function() {
5         $("#layoutsc").empty();
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/labels/label-manage.pl?label_element=layout" },
16                 {text: _("New Layout"), url: "/cgi-bin/koha/labels/label-edit-layout.pl?op=new" }
17         ];
18
19         var templates = [
20                 {text: _("Manage Templates"), url: "/cgi-bin/koha/labels/label-manage.pl?label_element=template" },
21                 {text: _("New Template"), url: "/cgi-bin/koha/labels/label-edit-template.pl?op=new" }
22         ];
23
24         var profiles = [
25                 {text: _("Manage Profiles"), url: "/cgi-bin/koha/labels/label-manage.pl?label_element=profile" },
26                 {text: _("New Profile"), url: "/cgi-bin/koha/labels/label-edit-profile.pl?op=new" }
27         ];
28
29         var batches = [
30                 {text: _("Manage Batches"), url: "/cgi-bin/koha/labels/label-manage.pl?label_element=batch" },
31                 {text: _("New Batch"), url: "/cgi-bin/koha/labels/label-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>