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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt (-17 / +24 lines)
Lines 7-19 Link Here
7
    [% SWITCH op %]
7
    [% SWITCH op %]
8
        [% CASE 'add_form' %]
8
        [% CASE 'add_form' %]
9
            [% IF field %]
9
            [% IF field %]
10
                [% tx("Modify additional field '{field_name}'", { field_name = field.name }) | html %]
10
                [% tx("Modify field '{field_name}'", { field_name = field.name }) | html %] ›
11
            [% ELSE %]
11
            [% ELSE %]
12
                [% t("Add additional field") | html %]
12
                [% t("New field") | html %] ›
13
            [% END %]
13
            [% END %]
14
        [% CASE %]
14
            [% tx("Table '{table_name}'", { table_name = tablename } ) | html %]
15
            [% t("Manage additional fields") | html %]
15
        [% CASE 'list' %]
16
            [% tx("Table '{table_name}'", { table_name = tablename } ) | html %]
16
    [% END %] ›
17
    [% END %] ›
18
    [% t("Additional fields") | html %] ›
17
    [% t("Administration") | html %] ›
19
    [% t("Administration") | html %] ›
18
    [% t("Koha") | html %]
20
    [% t("Koha") | html %]
19
[% END %]</title>
21
[% END %]</title>
Lines 38-66 Link Here
38
        [% SWITCH op %]
40
        [% SWITCH op %]
39
            [% CASE 'add_form' %]
41
            [% CASE 'add_form' %]
40
                [% WRAPPER breadcrumb_item %]
42
                [% WRAPPER breadcrumb_item %]
41
                    <a href="/cgi-bin/koha/admin/additional-fields.pl">Manage additional fields</a>
43
                    <a href="/cgi-bin/koha/admin/additional-fields.pl">Additional fields</a>
42
                [% END %]
44
                [% END %]
43
                [% IF field %]
45
                [% IF field %]
46
                    [% WRAPPER breadcrumb_item %]
47
                        <a href="/cgi-bin/koha/admin/additional-fields.pl?tablename=[% tablename | uri %]">[% tx("Table '{table_name}'", { table_name = tablename } ) | html %]</a>
48
                    [% END %]
44
                    [% WRAPPER breadcrumb_item bc_active= 1 %]
49
                    [% WRAPPER breadcrumb_item bc_active= 1 %]
45
                        <span>Modify field '[% field.name | html %]'</span>
50
                        [% tx("Modify field '{field_name}'", { field_name = field.name }) | html %]
46
                    [% END %]
51
                    [% END %]
47
                [% ELSE %]
52
                [% ELSE %]
53
                    [% WRAPPER breadcrumb_item %]
54
                        <a href="/cgi-bin/koha/admin/additional-fields.pl?tablename=[% tablename | uri %]">[% tx("Table '{table_name}'", { table_name = tablename } ) | html %]</a>
55
                    [% END %]
48
                    [% WRAPPER breadcrumb_item bc_active= 1 %]
56
                    [% WRAPPER breadcrumb_item bc_active= 1 %]
49
                        <span>Add field</span>
57
                        [% t("New field" ) | html %]
50
                    [% END %]
58
                    [% END %]
51
                [% END %]
59
                [% END %]
52
60
53
            [% CASE 'list' %]
61
            [% CASE 'list' %]
54
                [% WRAPPER breadcrumb_item %]
62
                [% WRAPPER breadcrumb_item %]
55
                    <a href="/cgi-bin/koha/admin/additional-fields.pl">Manage additional fields</a>
63
                    <a href="/cgi-bin/koha/admin/additional-fields.pl">Additional fields</a>
56
                [% END %]
64
                [% END %]
57
                [% WRAPPER breadcrumb_item bc_active= 1 %]
65
                [% WRAPPER breadcrumb_item bc_active= 1 %]
58
                    <span>Modify fields for '[% tablename | html %]'</span>
66
                    [% tx("Table '{table_name}'", { table_name = tablename } ) | html %]
59
                [% END %]
67
                [% END %]
60
68
61
            [% CASE %]
69
            [% CASE %]
62
                [% WRAPPER breadcrumb_item bc_active= 1 %]
70
                [% WRAPPER breadcrumb_item bc_active= 1 %]
63
                    <span>Manage additional fields</span>
71
                    <span>Additional fields</span>
64
                [% END %]
72
                [% END %]
65
73
66
        [% END %]
74
        [% END %]
Lines 74-80 Link Here
74
82
75
    [% IF op == 'list' %]
83
    [% IF op == 'list' %]
76
        <div id="toolbar" class="btn-toolbar">
84
        <div id="toolbar" class="btn-toolbar">
77
            <a class="btn btn-default" id="newfields" href="?op=add_form&amp;tablename=[% tablename | uri %]"><i class="fa fa-plus"></i> Create field</a>
85
            <a class="btn btn-default" id="newfields" href="?op=add_form&amp;tablename=[% tablename | uri %]"><i class="fa fa-plus"></i> New field</a>
78
        </div>
86
        </div>
79
    [% END %]
87
    [% END %]
80
88
Lines 82-90 Link Here
82
        [% FOR message IN messages %]
90
        [% FOR message IN messages %]
83
            [% IF message.code == 'insert' %]
91
            [% IF message.code == 'insert' %]
84
                [% IF message.number > 0 %]
92
                [% IF message.number > 0 %]
85
                    <div class="dialog message">The field has been inserted</div>
93
                    <div class="dialog message">The field has been added</div>
86
                [% ELSE %]
94
                [% ELSE %]
87
                    <div class="dialog alert">The field could not be inserted. Perhaps the name already exists?</div>
95
                    <div class="dialog alert">The field could not be added. Perhaps the name already exists?</div>
88
                [% END %]
96
                [% END %]
89
            [% ELSIF message.code == 'update' %]
97
            [% ELSIF message.code == 'update' %]
90
                [% IF message.number > 0 %]
98
                [% IF message.number > 0 %]
Lines 107-113 Link Here
107
        <h1>Additional fields</h1>
115
        <h1>Additional fields</h1>
108
116
109
        <div class="page-section">
117
        <div class="page-section">
110
            <p>Select a table:</p>
118
            <h2>Select a table:</h2>
111
            [% BLOCK table_option %]
119
            [% BLOCK table_option %]
112
                <li><a href="?tablename=[% value | uri %]">[% content | $raw %] (<span class="ex">[% value | html %]</span>)</a></li>
120
                <li><a href="?tablename=[% value | uri %]">[% content | $raw %] (<span class="ex">[% value | html %]</span>)</a></li>
113
            [% END %]
121
            [% END %]
Lines 183-191 Link Here
183
        [% END %]
191
        [% END %]
184
    [% ELSIF op == 'add_form' %]
192
    [% ELSIF op == 'add_form' %]
185
        [% IF field %]
193
        [% IF field %]
186
            <h1>Modify field</h1>
194
            <h1>[% tx("Modify field '{field_name}' for table '{table_name}'", { field_name = field.name, table_name = tablename }) | html %]</h1>
187
        [% ELSE %]
195
        [% ELSE %]
188
            <h1>Add field</h1>
196
            <h1>[% tx("New field for table '{table_name}'", { table_name = tablename } ) | html %]</h1>
189
        [% END %]
197
        [% END %]
190
        <form action="" name="add_form" id="add_field" method="post">
198
        <form action="" name="add_form" id="add_field" method="post">
191
            <fieldset class="rows">
199
            <fieldset class="rows">
192
- 

Return to bug 34411