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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt (-19 lines)
Lines 2-23 Link Here
2
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Manage patron card batches</title>
2
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Manage patron card batches</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'greybox.inc' %]
4
    [% INCLUDE 'greybox.inc' %]
5
    <script type="text/javascript">
6
        //<![CDATA[
7
        $(document).ready(function() {
8
            $("#cancel").empty();
9
            buildButtons();
10
         });
11
        function buildButtons() {
12
            var cancelButton = new YAHOO.widget.Button({
13
                type: "link",
14
                href: "/cgi-bin/koha/patroncards/manage.pl?card_element=batch",
15
                label: _("Cancel"),
16
                id: "cancel",
17
                container: "cancel",
18
            });
19
        };
20
    </script>
21
</head>
5
</head>
22
<body id="pcard_edit-batch" class="tools pcard">
6
<body id="pcard_edit-batch" class="tools pcard">
23
    [% INCLUDE 'header.inc' %]
7
    [% INCLUDE 'header.inc' %]
Lines 76-84 Link Here
76
                            </div>
60
                            </div>
77
                            [% END %]
61
                            [% END %]
78
                        </div>
62
                        </div>
79
                        <fieldset class="action">
80
                            <span id="cancel"><a class="cancel" href="/cgi-bin/koha/patroncards/manage.pl?card_element=batch">Cancel</a></span>
81
                        </fieldset>
82
                    </div>
63
                    </div>
83
                </div>
64
                </div>
84
                <div class="yui-b">
65
                <div class="yui-b">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt (-29 / +2 lines)
Lines 105-137 Link Here
105
        });
105
        });
106
        //]]>
106
        //]]>
107
    </script>
107
    </script>
108
    <script type="text/javascript">
109
        //<![CDATA[
110
        $(document).ready(function() {
111
            $("#save").empty();
112
            $("#cancel").empty();
113
            buildButtons();
114
         });
115
        function submitForm() {
116
            document.input.submit();
117
        };
118
        function buildButtons() {
119
            var saveButton = new YAHOO.widget.Button({
120
                type: "link",
121
                onclick: {fn: submitForm},
122
                label: _("Save"),
123
                id: "save",
124
                container: "save"
125
            });
126
            var cancelButton = new YAHOO.widget.Button({
127
                type: "link",
128
                href: "/cgi-bin/koha/patroncards/manage.pl?card_element=layout",
129
                label: _("Cancel"),
130
                id: "cancel",
131
                container: "cancel",
132
            });
133
        };
134
    </script>
135
</head>
108
</head>
136
<body id="pcard_edit-layout" class="tools pcard">
109
<body id="pcard_edit-layout" class="tools pcard">
137
    [% INCLUDE 'header.inc' %]
110
    [% INCLUDE 'header.inc' %]
Lines 534-541 Link Here
534
                </div>
507
                </div>
535
                </div>
508
                </div>
536
                    <fieldset class="action">
509
                    <fieldset class="action">
537
                        <span id="save"><input type="submit" value="Save" /></span>
510
                        <input type="submit" value="Save" />
538
                        <span id="cancel"><a class="cancel" href="/cgi-bin/koha/patroncards/manage.pl?card_element=layout">Cancel</a></span>
511
                        <a class="cancel" href="/cgi-bin/koha/patroncards/manage.pl?card_element=layout">Cancel</a>
539
                        <input type="hidden" name="op" value="save" />
512
                        <input type="hidden" name="op" value="save" />
540
                        <input type="hidden" name="layout_id" value="[% layout_id %]" />
513
                        <input type="hidden" name="layout_id" value="[% layout_id %]" />
541
                    </fieldset>
514
                    </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-profile.tt (-29 / +2 lines)
Lines 35-67 Link Here
35
        });
35
        });
36
        //]]>
36
        //]]>
37
    </script>
37
    </script>
38
    <script type="text/javascript">
39
        //<![CDATA[
40
        $(document).ready(function() {
41
            $("#save").empty();
42
            $("#cancel").empty();
43
            buildButtons();
44
         });
45
        function submitForm() {
46
            document.input.submit();
47
        };
48
        function buildButtons() {
49
            var saveButton = new YAHOO.widget.Button({
50
                type: "link",
51
                onclick: {fn: submitForm},
52
                label: _("Save"),
53
                id: "save",
54
                container: "save"
55
            });
56
            var cancelButton = new YAHOO.widget.Button({
57
                type: "link",
58
                href: "/cgi-bin/koha/patroncards/manage.pl?card_element=profile",
59
                label: _("Cancel"),
60
                id: "cancel",
61
                container: "cancel",
62
            });
63
        };
64
    </script>
65
</head>
38
</head>
66
<body id="pcard_edit-profile" class="tools pcard">
39
<body id="pcard_edit-profile" class="tools pcard">
67
    [% INCLUDE 'header.inc' %]
40
    [% INCLUDE 'header.inc' %]
Lines 145-152 Link Here
145
                                        </ol>
118
                                        </ol>
146
                                    </fieldset>
119
                                    </fieldset>
147
                                    <fieldset class="action">
120
                                    <fieldset class="action">
148
                                        <span id="save"><input type="submit" value="Save" /></span>
121
                                        <input type="submit" value="Save" />
149
                                        <span id ="cancel"><a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">Cancel</a></span>
122
                                        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">Cancel</a>
150
                                        <input type="hidden" name="op" value="save" />
123
                                        <input type="hidden" name="op" value="save" />
151
                                        <input type="hidden" name="profile_id" value="[% profile_id %]" />
124
                                        <input type="hidden" name="profile_id" value="[% profile_id %]" />
152
                                    </fieldset>
125
                                    </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt (-30 / +2 lines)
Lines 35-67 Link Here
35
        });
35
        });
36
        //]]>
36
        //]]>
37
    </script>
37
    </script>
38
   <script type="text/javascript">
39
        //<![CDATA[
40
        $(document).ready(function() {
41
            $("#save").empty();
42
            $("#cancel").empty();
43
            buildButtons();
44
         });
45
        function submitForm() {
46
            document.input.submit();
47
        };
48
        function buildButtons() {
49
            var saveButton = new YAHOO.widget.Button({
50
                type: "link",
51
                onclick: {fn: submitForm},
52
                label: _("Save"),
53
                id: "save",
54
                container: "save"
55
            });
56
            var cancelButton = new YAHOO.widget.Button({
57
                type: "link",
58
                href: "/cgi-bin/koha/patroncards/manage.pl?card_element=template",
59
                label: _("Cancel"),
60
                id: "cancel",
61
                container: "cancel",
62
            });
63
        };
64
    </script>
65
</head>
38
</head>
66
<body id="pcard_edit-template" class="tools pcard">
39
<body id="pcard_edit-template" class="tools pcard">
67
    [% INCLUDE 'header.inc' %]
40
    [% INCLUDE 'header.inc' %]
Lines 181-188 Link Here
181
                    </div>
154
                    </div>
182
                    <div class="yui-g">
155
                    <div class="yui-g">
183
                        <fieldset class="action">
156
                        <fieldset class="action">
184
                            <span id="save"><input type="submit" class="submit" value="Save" /></span>
157
                            <input type="submit" class="submit" value="Save" />
185
                            <span id="cancel"><a class="cancel" href="/cgi-bin/koha/patroncards/manage.pl?card_element=template">Cancel</a></span>
158
                            <a class="cancel" href="/cgi-bin/koha/patroncards/manage.pl?card_element=template">Cancel</a>
186
                            <input type="hidden" name="op" value="save" />
159
                            <input type="hidden" name="op" value="save" />
187
                            [% IF ( template_id ) %]
160
                            [% IF ( template_id ) %]
188
                            <input type="hidden" name="template_id" value="[% template_id %]" />
161
                            <input type="hidden" name="template_id" value="[% template_id %]" />
189
- 

Return to bug 9696