Lines 3-90
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 |
<div class="pagelist"> |
6 |
<div class="pagelist"> |
7 |
<form method="post" action="/cgi-bin/koha/admin/columns_settings.pl"> |
7 |
<form method="post" action="/cgi-bin/koha/admin/columns_settings.pl"> |
8 |
<input type="hidden" name="action" value="save" /> |
8 |
<input type="hidden" name="action" value="save" /> |
9 |
<input type="hidden" name="module" value="[% modulename | html %]" /> |
9 |
<input type="hidden" name="module" value="[% modulename | html %]" /> |
10 |
<input type="hidden" name="panel" value="[% panel_id | html %]" /> |
10 |
<input type="hidden" name="panel" value="[% panel_id | html %]" /> |
11 |
[% SET panel_id = panel_id + 1 %] |
11 |
[% SET panel_id = panel_id + 1 %] |
12 |
[% IF module.keys and module.keys.size > 0 %] |
12 |
[% IF module.keys and module.keys.size > 0 %] |
13 |
[% FOR pagename IN module.keys %] |
13 |
[% FOR pagename IN module.keys %] |
14 |
<h5>[% pagename | html %]</h5> |
14 |
<h5>[% pagename | html %]</h5> |
15 |
[% SET tables = module %] |
15 |
[% SET tables = module %] |
16 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %] |
16 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %] |
17 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
17 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
18 |
[% IF pagename == 'additem' AND tablename == 'itemst' %] |
18 |
[% IF pagename == 'additem' AND tablename == 'itemst' %] |
19 |
<div class="alert">Changes made below will only apply to item subfields that are mapped to the 'items' table. <a href="/cgi-bin/koha/admin/koha2marclinks.pl?tablename=items">Go to Koha to MARC mapping</a></div> |
19 |
<div class="alert">Changes made below will only apply to item subfields that are mapped to the 'items' table. <a href="/cgi-bin/koha/admin/koha2marclinks.pl?tablename=items">Go to Koha to MARC mapping</a></div> |
20 |
[% END %] |
20 |
[% END %] |
21 |
<table> |
21 |
<table> |
22 |
<caption> |
22 |
<caption> |
23 |
[% IF tablename == 'currencies-table' %] |
23 |
[% IF tablename == 'currencies-table' %] |
24 |
Currency |
24 |
Currency |
25 |
[% ELSIF pagename == 'additem' AND tablename == 'itemst' %] |
25 |
[% ELSIF pagename == 'additem' AND tablename == 'itemst' %] |
26 |
Items Editor |
26 |
Items Editor |
27 |
[% END %] |
27 |
[% END %] |
28 |
(id=[% tablename | html %]) |
28 |
(id=[% tablename | html %]) |
29 |
</caption> |
29 |
</caption> |
30 |
<thead><tr><th>Column name</th><th>Is hidden by default</th><th>Cannot be toggled</th></tr></thead> |
30 |
<thead> |
31 |
<tbody> |
31 |
<tr> |
32 |
[% FOR column IN tables.$pagename.$tablename %] |
32 |
<th>Column name</th> |
33 |
[% SET value = pagename _ '#' _ tablename _ '#' _ column.columnname %] |
33 |
<th>Is hidden by default</th> |
34 |
<tr> |
34 |
<th>Cannot be toggled</th> |
35 |
<td> |
35 |
</tr> |
36 |
[% column.columnname | html %] |
36 |
</thead> |
37 |
<input type="hidden" name="columnid" value="[% value | html %]" /> |
37 |
<tbody> |
38 |
</td> |
38 |
[% FOR column IN tables.$pagename.$tablename %] |
39 |
<td> |
39 |
[% SET value = pagename _ '#' _ tablename _ '#' _ column.columnname %] |
40 |
[% IF column.is_hidden %] |
40 |
<tr> |
41 |
[% IF column.cannot_be_modified %] |
41 |
<td> |
42 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" checked="checked" disabled="disabled" /> |
42 |
[% column.columnname | html %] |
43 |
<input type="hidden" name="[% value | html %]_hidden" value="1" /> |
43 |
<input type="hidden" name="columnid" value="[% value | html %]" /> |
44 |
[% ELSE %] |
44 |
</td> |
45 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" checked="checked" /> |
45 |
<td> |
46 |
[% END %] |
46 |
[% IF column.is_hidden %] |
47 |
[% ELSE %] |
47 |
[% IF column.cannot_be_modified %] |
48 |
[% IF column.cannot_be_modified %] |
48 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" checked="checked" disabled="disabled" /> |
49 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" disabled="disabled" /> |
49 |
<input type="hidden" name="[% value | html %]_hidden" value="1" /> |
50 |
<input type="hidden" name="[% value | html %]_hidden" value="0" /> |
50 |
[% ELSE %] |
51 |
[% ELSE %] |
51 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" checked="checked" /> |
52 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" /> |
52 |
[% END %] |
53 |
[% END %] |
53 |
[% ELSE %] |
54 |
[% END %] |
54 |
[% IF column.cannot_be_modified %] |
55 |
</td> |
55 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" disabled="disabled" /> |
56 |
<td> |
56 |
<input type="hidden" name="[% value | html %]_hidden" value="0" /> |
57 |
[% IF column.cannot_be_toggled %] |
57 |
[% ELSE %] |
58 |
[% IF column.cannot_be_modified %] |
58 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" /> |
59 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" checked="checked" disabled="disabled" /> |
59 |
[% END %] |
60 |
<input type="hidden" name="[% value | html %]_cannot_be_toggled" value="1" /> |
60 |
[% END %] |
61 |
[% ELSE %] |
61 |
</td> |
62 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" checked="checked" /> |
62 |
<td> |
63 |
[% END %] |
63 |
[% IF column.cannot_be_toggled %] |
|
|
64 |
[% IF column.cannot_be_modified %] |
65 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" checked="checked" disabled="disabled" /> |
66 |
<input type="hidden" name="[% value | html %]_cannot_be_toggled" value="1" /> |
67 |
[% ELSE %] |
68 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" checked="checked" /> |
69 |
[% END %] |
70 |
[% ELSE %] |
71 |
[% IF column.cannot_be_modified %] |
72 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" disabled="disabled" /> |
73 |
<input type="hidden" name="[% value | html %]_cannot_be_toggled" value="0" /> |
74 |
[% ELSE %] |
75 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" /> |
76 |
[% END %] |
77 |
[% END %] |
78 |
</td> |
79 |
</tr> |
80 |
[% END %] |
81 |
</tbody> |
82 |
</table> |
83 |
[% END %] |
84 |
<input type="submit" value="Save" /> |
64 |
[% ELSE %] |
85 |
[% ELSE %] |
65 |
[% IF column.cannot_be_modified %] |
86 |
There is no table to configure for this module. |
66 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" disabled="disabled" /> |
|
|
67 |
<input type="hidden" name="[% value | html %]_cannot_be_toggled" value="0" /> |
68 |
[% ELSE %] |
69 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" /> |
70 |
[% END %] |
71 |
[% END %] |
87 |
[% END %] |
72 |
</td> |
88 |
[% END %] |
73 |
</tr> |
89 |
[% ELSE %] |
74 |
[% END %] |
90 |
There is no page using the table configuration in this module. |
75 |
</tbody> |
91 |
[% END %] |
76 |
</table> |
92 |
</form> |
77 |
[% END %] |
93 |
</div> |
78 |
<input type="submit" value="Save" /> |
|
|
79 |
[% ELSE %] |
80 |
There is no table to configure for this module. |
81 |
[% END %] |
82 |
[% END %] |
83 |
[% ELSE %] |
84 |
There is no page using the table configuration in this module. |
85 |
[% END %] |
86 |
</form> |
87 |
</div> |
88 |
[% END %] |
94 |
[% END %] |
89 |
|
95 |
|
90 |
[% INCLUDE 'doc-head-open.inc' %] |
96 |
[% INCLUDE 'doc-head-open.inc' %] |
Lines 93-212
Link Here
|
93 |
</head> |
99 |
</head> |
94 |
|
100 |
|
95 |
<body id="admin_tables" class="admin"> |
101 |
<body id="admin_tables" class="admin"> |
96 |
[% INCLUDE 'header.inc' %] |
102 |
|
97 |
[% INCLUDE 'prefs-admin-search.inc' %] |
103 |
[% INCLUDE 'header.inc' %] |
98 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Columns settings</div> |
104 |
[% INCLUDE 'prefs-admin-search.inc' %] |
99 |
|
105 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Columns settings</div> |
100 |
<div class="main container-fluid"> |
106 |
|
101 |
<div class="row"> |
107 |
<div class="main container-fluid"> |
102 |
<div class="col-sm-10 col-sm-push-2"> |
108 |
<div class="row"> |
103 |
<main> |
109 |
<div class="col-sm-10 col-sm-push-2"> |
104 |
|
110 |
<main> |
105 |
<h2>Columns settings</h2> |
111 |
|
106 |
<div id="modules"> |
112 |
<h2>Columns settings</h2> |
107 |
<h3><a href="#acqui">Acquisition</a></h3> |
113 |
<div id="modules"> |
108 |
<div id="acqui"> |
114 |
<h3><a href="#acqui">Acquisition</a></h3> |
109 |
<h4>Acquisition tables</h4> |
115 |
<div id="acqui"> |
110 |
[% PROCESS pagelist module=modules.acqui modulename="acqui" %] |
116 |
<h4>Acquisition tables</h4> |
111 |
</div> |
117 |
[% PROCESS pagelist module=modules.acqui modulename="acqui" %] |
112 |
|
118 |
</div> |
113 |
<h3><a href="#admin">Administration</a></h3> |
119 |
|
114 |
<div id="admin"> |
120 |
<h3><a href="#admin">Administration</a></h3> |
115 |
<h4>Administration tables</h4> |
121 |
<div id="admin"> |
116 |
[% PROCESS pagelist module=modules.admin modulename="admin" %] |
122 |
<h4>Administration tables</h4> |
117 |
</div> |
123 |
[% PROCESS pagelist module=modules.admin modulename="admin" %] |
118 |
|
124 |
</div> |
119 |
<h3><a href="#authorities">Authorities</a></h3> |
125 |
|
120 |
<div id="authorities"> |
126 |
<h3><a href="#authorities">Authorities</a></h3> |
121 |
<h4>Authorities tables</h4> |
127 |
<div id="authorities"> |
122 |
[% PROCESS pagelist module=modules.authorities modulename="authorities" %] |
128 |
<h4>Authorities tables</h4> |
123 |
</div> |
129 |
[% PROCESS pagelist module=modules.authorities modulename="authorities" %] |
124 |
|
130 |
</div> |
125 |
<h3><a href="#catalog">Catalog</a></h3> |
131 |
|
126 |
<div id="catalogue"> |
132 |
<h3><a href="#catalog">Catalog</a></h3> |
127 |
<h4>Catalogue tables</h4> |
133 |
<div id="catalogue"> |
128 |
[% PROCESS pagelist module=modules.catalogue modulename="catalogue" %] |
134 |
<h4>Catalogue tables</h4> |
129 |
</div> |
135 |
[% PROCESS pagelist module=modules.catalogue modulename="catalogue" %] |
130 |
|
136 |
</div> |
131 |
<h3><a href="#cataloguing">Cataloging</a></h3> |
137 |
|
132 |
<div id="cataloguing"> |
138 |
<h3><a href="#cataloguing">Cataloging</a></h3> |
133 |
<h4>Cataloguing tables</h4> |
139 |
<div id="cataloguing"> |
134 |
[% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %] |
140 |
<h4>Cataloguing tables</h4> |
135 |
</div> |
141 |
[% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %] |
136 |
|
142 |
</div> |
137 |
<h3><a href="#circulation">Circulation</a></h3> |
143 |
|
138 |
<div id="circulation"> |
144 |
<h3><a href="#circulation">Circulation</a></h3> |
139 |
<h4>Circulation tables</h4> |
145 |
<div id="circulation"> |
140 |
[% PROCESS pagelist module=modules.circ modulename="circ" %] |
146 |
<h4>Circulation tables</h4> |
141 |
</div> |
147 |
[% PROCESS pagelist module=modules.circ modulename="circ" %] |
142 |
|
148 |
</div> |
143 |
<h3><a href="#coursereserves">Course reserves</a></h3> |
149 |
|
144 |
<div id="coursereserves"> |
150 |
<h3><a href="#coursereserves">Course reserves</a></h3> |
145 |
<h4>Course reserves tables</h4> |
151 |
<div id="coursereserves"> |
146 |
[% PROCESS pagelist module=modules.coursereserves modulename="coursereserves" %] |
152 |
<h4>Course reserves tables</h4> |
147 |
</div> |
153 |
[% PROCESS pagelist module=modules.coursereserves modulename="coursereserves" %] |
148 |
|
154 |
</div> |
149 |
<h3><a href="#ill">Interlibrary loans</a></h3> |
155 |
|
150 |
<div id="ill"> |
156 |
<h3><a href="#ill">Interlibrary loans</a></h3> |
151 |
<h4>Interlibrary loans tables</h4> |
157 |
<div id="ill"> |
152 |
[% PROCESS pagelist module=modules.illrequests modulename="illrequests" %] |
158 |
<h4>Interlibrary loans tables</h4> |
153 |
</div> |
159 |
[% PROCESS pagelist module=modules.illrequests modulename="illrequests" %] |
154 |
|
160 |
</div> |
155 |
<h3><a href="#members">Patrons</a></h3> |
161 |
|
156 |
<div id="members"> |
162 |
<h3><a href="#members">Patrons</a></h3> |
157 |
<h4>Patrons tables</h4> |
163 |
<div id="members"> |
158 |
[% PROCESS pagelist module=modules.members modulename="members" %] |
164 |
<h4>Patrons tables</h4> |
159 |
</div> |
165 |
[% PROCESS pagelist module=modules.members modulename="members" %] |
160 |
|
166 |
</div> |
161 |
<h3><a href="#tools">Tools</a></h3> |
167 |
|
162 |
<div id="tools"> |
168 |
<h3><a href="#tools">Tools</a></h3> |
163 |
<h4>Tools tables</h4> |
169 |
<div id="tools"> |
164 |
[% PROCESS pagelist module=modules.tools modulename="tools" %] |
170 |
<h4>Tools tables</h4> |
165 |
</div> |
171 |
[% PROCESS pagelist module=modules.tools modulename="tools" %] |
166 |
|
172 |
</div> |
167 |
<h3><a href="#opac">OPAC</a></h3> |
173 |
|
168 |
<div id="opac"> |
174 |
<h3><a href="#opac">OPAC</a></h3> |
169 |
<h4>OPAC tables</h4> |
175 |
<div id="opac"> |
170 |
[% PROCESS pagelist module=modules.opac modulename="opac" %] |
176 |
<h4>OPAC tables</h4> |
171 |
</div> |
177 |
[% PROCESS pagelist module=modules.opac modulename="opac" %] |
172 |
|
178 |
</div> |
173 |
<h3><a href="#reports">Reports</a></h3> |
179 |
|
174 |
<div id="reports"> |
180 |
<h3><a href="#reports">Reports</a></h3> |
175 |
<h4>Reports tables</h4> |
181 |
<div id="reports"> |
176 |
[% PROCESS pagelist module=modules.reports modulename="reports" %] |
182 |
<h4>Reports tables</h4> |
177 |
</div> |
183 |
[% PROCESS pagelist module=modules.reports modulename="reports" %] |
178 |
|
184 |
</div> |
179 |
<h3><a href="#serials">Serials</a></h3> |
185 |
|
180 |
<div id="serials"> |
186 |
<h3><a href="#serials">Serials</a></h3> |
181 |
<h4>Serials tables</h4> |
187 |
<div id="serials"> |
182 |
[% PROCESS pagelist module=modules.serials modulename="serials" %] |
188 |
<h4>Serials tables</h4> |
183 |
</div> |
189 |
[% PROCESS pagelist module=modules.serials modulename="serials" %] |
184 |
|
190 |
</div> |
185 |
</div> |
191 |
|
186 |
</main> |
192 |
</div> |
187 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
193 |
</main> |
188 |
|
194 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
189 |
<div class="col-sm-2 col-sm-pull-10"> |
195 |
|
190 |
<aside> |
196 |
<div class="col-sm-2 col-sm-pull-10"> |
191 |
[% INCLUDE 'admin-menu.inc' %] |
197 |
<aside> |
192 |
</aside> |
198 |
[% INCLUDE 'admin-menu.inc' %] |
193 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
199 |
</aside> |
194 |
</div> <!-- /.row --> |
200 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
|
|
201 |
</div> <!-- /.row --> |
195 |
|
202 |
|
196 |
[% MACRO jsinclude BLOCK %] |
203 |
[% MACRO jsinclude BLOCK %] |
197 |
[% Asset.js("js/admin-menu.js") | $raw %] |
204 |
[% Asset.js("js/admin-menu.js") | $raw %] |
198 |
<script> |
205 |
<script> |
199 |
$(document).ready( function() { |
206 |
$(document).ready( function() { |
200 |
var accordion = $( "#modules" ).accordion({ |
207 |
var accordion = $( "#modules" ).accordion({ |
201 |
collapsible: true, |
208 |
collapsible: true, |
202 |
autoHeight: false, |
209 |
autoHeight: false, |
203 |
header: "h3", |
210 |
header: "h3", |
204 |
[%- IF panel -%] |
211 |
[%- IF panel -%] |
205 |
[%# we were asked to show a specific panel, usually on update %] |
212 |
[%# we were asked to show a specific panel, usually on update %] |
206 |
active: [%- panel | html -%] |
213 |
active: [%- panel | html -%] |
207 |
[%- ELSE -%] |
214 |
[%- ELSE -%] |
208 |
active: false |
215 |
active: false |
209 |
[%- END -%] |
216 |
[%- END -%] |
210 |
}); |
217 |
}); |
211 |
}); |
218 |
}); |
212 |
</script> |
219 |
</script> |
213 |
- |
|
|