View | Details | Raw Unified | Return to bug 9636
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-new-toolbar.inc (-23 lines)
Lines 1-23 Link Here
1
<script type="text/javascript">
2
    //<![CDATA[
3
    // prepare DOM for YUI Toolbar
4
     $(document).ready(function() {
5
        yuiToolbar();
6
     });
7
    // YUI Toolbar Functions
8
    function yuiToolbar() {
9
        new YAHOO.widget.Button("newlabel");
10
        new YAHOO.widget.Button("newtemplate");
11
        new YAHOO.widget.Button("newprofile");
12
        new YAHOO.widget.Button("newbatch");
13
    }
14
    //]]>
15
</script>
16
<div id="toolbar">
17
    <ul class="toolbar">
18
        <li><a id="newlabel" href="/cgi-bin/koha/labels/label-edit-layout.pl?op=new">New layout</a></li>
19
        <li><a id="newtemplate" href="/cgi-bin/koha/labels/label-edit-template.pl?op=new">New template</a></li>
20
        <li><a id="newprofile" href="/cgi-bin/koha/labels/label-edit-profile.pl?op=new">New profile</a></li>
21
        <li><a id="newbatch" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=new">New batch</a></li>
22
    </ul>
23
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-toolbar.inc (-76 / +17 lines)
Lines 1-75 Link Here
1
<script type="text/javascript">
1
<div id="toolbar" class="btn-toolbar">
2
    //<![CDATA[
2
    <div class="btn-group">
3
    // prepare DOM for YUI Toolbar
3
        <a class="btn btn-small" href="/cgi-bin/koha/labels/label-edit-layout.pl?op=new">New layout</a>
4
    $(document).ready(function() {
4
    </div>
5
        $("#layoutsc").empty();
5
6
        $("#templatesc").empty();
6
    <div class="btn-group">
7
        $("#profilesc").empty();
7
            <a class="btn btn-small" href="/cgi-bin/koha/labels/label-edit-template.pl?op=new">New template</a>
8
        $("#batches").empty();
8
    </div>
9
        yuiToolbar();
9
10
     });
10
    <div class="btn-group">
11
11
        <a class="btn btn-small" href="/cgi-bin/koha/labels/label-edit-profile.pl?op=new">New profile</a>
12
    // YUI Toolbar Functions
12
    </div>
13
    function yuiToolbar() {
13
14
        var layouts = [
14
    <div class="btn-group">
15
                {text: _("Manage layouts"), url: "/cgi-bin/koha/labels/label-manage.pl?label_element=layout" },
15
        <a class="btn btn-small" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=new">New batch</a>
16
                {text: _("New layout"), url: "/cgi-bin/koha/labels/label-edit-layout.pl?op=new" }
16
    </div>
17
        ];
17
</div>
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>
76
- 

Return to bug 9636