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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt (-31 / +50 lines)
Lines 3-8 Link Here
3
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
4
[% SET panel_id = 0 %]
4
[% SET panel_id = 0 %]
5
[% BLOCK pagelist %]
5
[% BLOCK pagelist %]
6
    [% IF module.keys and module.keys.size > 0 %]
7
        Jump to:
8
        [% FOR pagename IN module.keys %]
9
            <a href="#[% pagename | url %]">[% pagename | html %]</a>
10
            [% UNLESS loop.last %]<span class="separator"> | </span>[% END %]
11
        [% END %]
12
    [% END %]
6
    <div class="pagelist">
13
    <div class="pagelist">
7
        <form method="post" action="/cgi-bin/koha/admin/columns_settings.pl">
14
        <form method="post" action="/cgi-bin/koha/admin/columns_settings.pl">
8
            <input type="hidden" name="action" value="save" />
15
            <input type="hidden" name="action" value="save" />
Lines 11-17 Link Here
11
            [% SET panel_id = panel_id + 1 %]
18
            [% SET panel_id = panel_id + 1 %]
12
            [% IF module.keys and module.keys.size > 0 %]
19
            [% IF module.keys and module.keys.size > 0 %]
13
                [% FOR pagename IN module.keys %]
20
                [% FOR pagename IN module.keys %]
14
                    <h5>[% pagename | html %]</h5>
21
                    <h4 class="page_name" id="[% pagename | html %]">Page: [% pagename | html %]</h4>
15
                    [% SET tables = module %]
22
                    [% SET tables = module %]
16
                    [% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %]
23
                    [% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %]
17
                        [% FOR tablename IN tables.$pagename.keys.sort %]
24
                        [% FOR tablename IN tables.$pagename.keys.sort %]
Lines 24-31 Link Here
24
                                        Currency
31
                                        Currency
25
                                    [% ELSIF pagename == 'additem' AND tablename == 'itemst' %]
32
                                    [% ELSIF pagename == 'additem' AND tablename == 'itemst' %]
26
                                        Items Editor
33
                                        Items Editor
34
                                    [% ELSE %]
35
                                        Table id: [% tablename | html %]
27
                                    [% END %]
36
                                    [% END %]
28
                                    (id=[% tablename | html %])
29
                                </caption>
37
                                </caption>
30
                                <thead>
38
                                <thead>
31
                                    <tr>
39
                                    <tr>
Lines 81-87 Link Here
81
                                </tbody>
89
                                </tbody>
82
                            </table>
90
                            </table>
83
                        [% END %]
91
                        [% END %]
84
                        <input type="submit" value="Save" />
92
                        <fieldset class="action">
93
                            <input type="submit" value="Save" />
94
                        </fieldset>
85
                    [% ELSE %]
95
                    [% ELSE %]
86
                        There is no table to configure for this module.
96
                        There is no table to configure for this module.
87
                    [% END %]
97
                    [% END %]
Lines 96-101 Link Here
96
[% INCLUDE 'doc-head-open.inc' %]
106
[% INCLUDE 'doc-head-open.inc' %]
97
<title>Koha &rsaquo; Administration &rsaquo; Columns settings</title>
107
<title>Koha &rsaquo; Administration &rsaquo; Columns settings</title>
98
[% INCLUDE 'doc-head-close.inc' %]
108
[% INCLUDE 'doc-head-close.inc' %]
109
<style>
110
    caption {
111
        font-size: 115%;
112
    }
113
    .page_name {
114
        border-top: 1px solid #b9d8d9;
115
        margin-top: 1em;
116
        padding-top: 1em;
117
    }
118
</style>
99
</head>
119
</head>
100
120
101
<body id="admin_tables" class="admin">
121
<body id="admin_tables" class="admin">
Lines 111-191 Link Here
111
131
112
                            <h2>Columns settings</h2>
132
                            <h2>Columns settings</h2>
113
                            <div id="modules">
133
                            <div id="modules">
114
                                <h3><a href="#acqui">Acquisition</a></h3>
134
                                <div class="panel_header"><a href="#acqui">Acquisition</a></div>
115
                                <div id="acqui">
135
                                <div id="acqui">
116
                                    <h4>Acquisition tables</h4>
136
                                    <h3>Acquisition tables</h3>
117
                                    [% PROCESS pagelist module=modules.acqui modulename="acqui" %]
137
                                    [% PROCESS pagelist module=modules.acqui modulename="acqui" %]
118
                                </div>
138
                                </div>
119
139
120
                                <h3><a href="#admin">Administration</a></h3>
140
                                <div class="panel_header"><a href="#admin">Administration</a></div>
121
                                <div id="admin">
141
                                <div id="admin">
122
                                    <h4>Administration tables</h4>
142
                                    <h3>Administration tables</h3>
123
                                    [% PROCESS pagelist module=modules.admin modulename="admin" %]
143
                                    [% PROCESS pagelist module=modules.admin modulename="admin" %]
124
                                </div>
144
                                </div>
125
145
126
                                <h3><a href="#authorities">Authorities</a></h3>
146
                                <div class="panel_header"><a href="#authorities">Authorities</a></div>
127
                                <div id="authorities">
147
                                <div id="authorities">
128
                                    <h4>Authorities tables</h4>
148
                                    <h3>Authorities tables</h3>
129
                                    [% PROCESS pagelist module=modules.authorities modulename="authorities" %]
149
                                    [% PROCESS pagelist module=modules.authorities modulename="authorities" %]
130
                                </div>
150
                                </div>
131
151
132
                                <h3><a href="#catalog">Catalog</a></h3>
152
                                <div class="panel_header"><a href="#catalog">Catalog</a></div>
133
                                <div id="catalogue">
153
                                <div id="catalogue">
134
                                    <h4>Catalogue tables</h4>
154
                                    <h3>Catalogue tables</h3>
135
                                    [% PROCESS pagelist module=modules.catalogue modulename="catalogue" %]
155
                                    [% PROCESS pagelist module=modules.catalogue modulename="catalogue" %]
136
                                </div>
156
                                </div>
137
157
138
                                <h3><a href="#cataloguing">Cataloging</a></h3>
158
                                <div class="panel_header"><a href="#cataloguing">Cataloging</a></div>
139
                                <div id="cataloguing">
159
                                <div id="cataloguing">
140
                                    <h4>Cataloguing tables</h4>
160
                                    <h3>Cataloguing tables</h3>
141
                                    [% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %]
161
                                    [% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %]
142
                                </div>
162
                                </div>
143
163
144
                                <h3><a href="#circulation">Circulation</a></h3>
164
                                <div class="panel_header"><a href="#circulation">Circulation</a></div>
145
                                <div id="circulation">
165
                                <div id="circulation">
146
                                    <h4>Circulation tables</h4>
166
                                    <h3>Circulation tables</h3>
147
                                    [% PROCESS pagelist module=modules.circ modulename="circ" %]
167
                                    [% PROCESS pagelist module=modules.circ modulename="circ" %]
148
                                </div>
168
                                </div>
149
169
150
                                <h3><a href="#coursereserves">Course reserves</a></h3>
170
                                <div class="panel_header"><a href="#coursereserves">Course reserves</a></div>
151
                                <div id="coursereserves">
171
                                <div id="coursereserves">
152
                                    <h4>Course reserves tables</h4>
172
                                    <h3>Course reserves tables</h3>
153
                                    [% PROCESS pagelist module=modules.coursereserves modulename="coursereserves" %]
173
                                    [% PROCESS pagelist module=modules.coursereserves modulename="coursereserves" %]
154
                                </div>
174
                                </div>
155
175
156
                                <h3><a href="#ill">Interlibrary loans</a></h3>
176
                                <div class="panel_header"><a href="#ill">Interlibrary loans</a></div>
157
                                <div id="ill">
177
                                <div id="ill">
158
                                    <h4>Interlibrary loans tables</h4>
178
                                    <h3>Interlibrary loans tables</h3>
159
                                    [% PROCESS pagelist module=modules.illrequests modulename="illrequests" %]
179
                                    [% PROCESS pagelist module=modules.illrequests modulename="illrequests" %]
160
                                </div>
180
                                </div>
161
181
162
                                <h3><a href="#members">Patrons</a></h3>
182
                                <div class="panel_header"><a href="#members">Patrons</a></div>
163
                                <div id="members">
183
                                <div id="members">
164
                                    <h4>Patrons tables</h4>
184
                                    <h3>Patrons tables</h3>
165
                                    [% PROCESS pagelist module=modules.members modulename="members" %]
185
                                    [% PROCESS pagelist module=modules.members modulename="members" %]
166
                                </div>
186
                                </div>
167
187
168
                                <h3><a href="#tools">Tools</a></h3>
188
                                <div class="panel_header"><a href="#tools">Tools</a></div>
169
                                <div id="tools">
189
                                <div id="tools">
170
                                    <h4>Tools tables</h4>
190
                                    <h3>Tools tables</h3>
171
                                    [% PROCESS pagelist module=modules.tools modulename="tools" %]
191
                                    [% PROCESS pagelist module=modules.tools modulename="tools" %]
172
                                </div>
192
                                </div>
173
193
174
                                <h3><a href="#opac">OPAC</a></h3>
194
                                <div class="panel_header"><a href="#opac">OPAC</a></div>
175
                                <div id="opac">
195
                                <div id="opac">
176
                                    <h4>OPAC tables</h4>
196
                                    <h3>OPAC tables</h3>
177
                                    [% PROCESS pagelist module=modules.opac modulename="opac" %]
197
                                    [% PROCESS pagelist module=modules.opac modulename="opac" %]
178
                                </div>
198
                                </div>
179
199
180
                                <h3><a href="#reports">Reports</a></h3>
200
                                <div class="panel_header"><a href="#reports">Reports</a></div>
181
                                <div id="reports">
201
                                <div id="reports">
182
                                    <h4>Reports tables</h4>
202
                                    <h3>Reports tables</h3>
183
                                    [% PROCESS pagelist module=modules.reports modulename="reports" %]
203
                                    [% PROCESS pagelist module=modules.reports modulename="reports" %]
184
                                </div>
204
                                </div>
185
205
186
                                <h3><a href="#serials">Serials</a></h3>
206
                                <div class="panel_header"><a href="#serials">Serials</a></div>
187
                                <div id="serials">
207
                                <div id="serials">
188
                                    <h4>Serials tables</h4>
208
                                    <h3>Serials tables</h3>
189
                                    [% PROCESS pagelist module=modules.serials modulename="serials" %]
209
                                    [% PROCESS pagelist module=modules.serials modulename="serials" %]
190
                                </div>
210
                                </div>
191
211
Lines 207-213 Link Here
207
            var accordion = $( "#modules" ).accordion({
227
            var accordion = $( "#modules" ).accordion({
208
                    collapsible: true,
228
                    collapsible: true,
209
                    autoHeight: false,
229
                    autoHeight: false,
210
                    header: "h3",
230
                    header: ".panel_header",
211
                [%- IF panel -%]
231
                [%- IF panel -%]
212
                    [%# we were asked to show a specific panel, usually on update %]
232
                    [%# we were asked to show a specific panel, usually on update %]
213
                    active: [%- panel | html -%]
233
                    active: [%- panel | html -%]
214
- 

Return to bug 25135