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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt (-8 / +19 lines)
Lines 1-3 Link Here
1
[% BLOCK translate_card_element %]
2
[%  SWITCH element %]
3
[%   CASE 'layout'    %]layout
4
[%   CASE 'Layouts'   %]Layouts
5
[%   CASE 'template'  %]template
6
[%   CASE 'Templates' %]Templates
7
[%   CASE 'profile'   %]profile
8
[%   CASE 'Profiles'  %]Profiles
9
[%   CASE 'batch'     %]batch
10
[%   CASE 'Batches'   %]Batches
11
[%  END %]
12
[% END %]
1
    [% INCLUDE 'doc-head-open.inc' %]
13
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Patron cards &rsaquo; Manage patron card elements</title>
14
    <title>Koha &rsaquo; Tools &rsaquo; Patron cards &rsaquo; Manage patron card elements</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
15
    [% INCLUDE 'doc-head-close.inc' %]
Lines 7-13 Link Here
7
            function DeleteConfirm() {
19
            function DeleteConfirm() {
8
                var element_id = selected_layout("delete");
20
                var element_id = selected_layout("delete");
9
                if (element_id>-1) {
21
                if (element_id>-1) {
10
                    var msg = _("Are you sure you want to delete %s %s?").format("[% card_element %]", element_id);
22
                    var msg = _("Are you sure you want to delete %s %s?").format("[% PROCESS translate_card_element element=card_element %]", element_id);
11
                    var answer = confirm(msg);
23
                    var answer = confirm(msg);
12
                    if (answer) {
24
                    if (answer) {
13
                        window.location = "/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element %]&element_id=" + element_id;
25
                        window.location = "/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element %]&element_id=" + element_id;
Lines 64-70 Link Here
64
                        return(document.layouts.action[selected[0]].value);
76
                        return(document.layouts.action[selected[0]].value);
65
                    }
77
                    }
66
                    else {
78
                    else {
67
                        alert(_("Please select only one %s to %s.").format("[% card_element %]", op));
79
                        alert(_("Please select only one %s to %s.").format("[% PROCESS translate_card_element element=card_element %]", op));
68
                        return (-1);
80
                        return (-1);
69
                    }
81
                    }
70
                }
82
                }
Lines 73-79 Link Here
73
                        return(document.layouts.action.value);
85
                        return(document.layouts.action.value);
74
                    }
86
                    }
75
                };
87
                };
76
                alert(_("Please select a %s.").format("[% card_element %]"));
88
                alert(_("Please select a %s.").format("[% PROCESS translate_card_element element=card_element %]"));
77
                return (-1);
89
                return (-1);
78
            };
90
            };
79
91
Lines 101-107 Link Here
101
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
113
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
102
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
114
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
103
        <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> &rsaquo;
115
        <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> &rsaquo;
104
        Manage card [% card_element_title %]
116
        Manage card [% PROCESS translate_card_element element=card_element_title %]
105
    </div>
117
    </div>
106
    <div id="doc3" class="yui-t2">
118
    <div id="doc3" class="yui-t2">
107
        <div id="bd">
119
        <div id="bd">
Lines 114-120 Link Here
114
                            <div class="hint">Current library: [% LoginBranchname %]</div>
126
                            <div class="hint">Current library: [% LoginBranchname %]</div>
115
                            [% IF ( table_loop ) %]
127
                            [% IF ( table_loop ) %]
116
                            <form name="layouts" action="/cgi-bin/koha/manage.pl?card_element=[% card_element %]">
128
                            <form name="layouts" action="/cgi-bin/koha/manage.pl?card_element=[% card_element %]">
117
                            <h2>Currently Available [% card_element_title %]</h2>
129
                            <h2>Currently Available [% PROCESS translate_card_element element=card_element_title %]</h2>
118
                            <table>
130
                            <table>
119
                                [% FOREACH table_loo IN table_loop %]
131
                                [% FOREACH table_loo IN table_loop %]
120
                                [% IF ( table_loo.header_fields ) %]
132
                                [% IF ( table_loo.header_fields ) %]
Lines 146-153 Link Here
146
                            </form>
158
                            </form>
147
                            [% ELSE %]
159
                            [% ELSE %]
148
                        <div class="dialog message">
160
                        <div class="dialog message">
149
                            <h4>There are no [% card_element_title %] currently available.</h4>
161
                            <h4>There are no [% PROCESS translate_card_element element=card_element_title %] currently available.</h4>
150
                            <p>Use the toolbar above to create a new [% card_element %].</p></div>
162
                            <p>Use the toolbar above to create a new [% PROCESS translate_card_element element=card_element %].</p></div>
151
                            [% END %]
163
                            [% END %]
152
                        </div>
164
                        </div>
153
                    </div>
165
                    </div>
154
- 

Return to bug 11365