Line 0
Link Here
|
0 |
- |
1 |
[% SET panel_id = 0 %] |
|
|
2 |
[% BLOCK pagelist %] |
3 |
<div class="pagelist"> |
4 |
<form method="post" action="/cgi-bin/koha/admin/columns_settings.pl"> |
5 |
<input type="hidden" name="action" value="save" /> |
6 |
<input type="hidden" name="module" value="[% modulename %]" /> |
7 |
<input type="hidden" name="panel" value="[% panel_id %]" /> |
8 |
[% SET panel_id = panel_id + 1 %] |
9 |
[% IF module.keys and module.keys.size > 0 %] |
10 |
[% FOR pagename IN module.keys %] |
11 |
<h5>[% pagename %]</h5> |
12 |
[% SET tables = module %] |
13 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %] |
14 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
15 |
<table> |
16 |
<caption>[% tablename %]</caption> |
17 |
<thead><tr><th>Column name</th><th>Is Hidden by default</th><th>Cannot be toggled</th></tr></thead> |
18 |
<tbody> |
19 |
[% FOR column IN tables.$pagename.$tablename %] |
20 |
<tr> |
21 |
<td> |
22 |
[% column.columnname %] |
23 |
<input type="hidden" name="columnid" value="[% pagename %]_[% tablename %]_[% column.columnname %]" /> |
24 |
</td> |
25 |
<td> |
26 |
[% IF column.is_hidden %] |
27 |
[% IF column.cannot_be_modified %] |
28 |
<input type="checkbox" name="[% pagename %]_[% tablename %]_[% column.columnname %]_hidden" value="1" checked="checked" disabled="disabled" /> |
29 |
<input type="hidden" name="[% pagename %]_[% tablename %]_[% column.columnname %]_hidden" value="1" /> |
30 |
[% ELSE %] |
31 |
<input type="checkbox" name="[% pagename %]_[% tablename %]_[% column.columnname %]_hidden" value="1" checked="checked" /> |
32 |
[% END %] |
33 |
[% ELSE %] |
34 |
[% IF column.cannot_be_modified %] |
35 |
<input type="checkbox" name="[% pagename %]_[% tablename %]_[% column.columnname %]_hidden" value="1" disabled="disabled" /> |
36 |
<input type="hidden" name="[% pagename %]_[% tablename %]_[% column.columnname %]_hidden" value="0" /> |
37 |
[% ELSE %] |
38 |
<input type="checkbox" name="[% pagename %]_[% tablename %]_[% column.columnname %]_hidden" value="1" /> |
39 |
[% END %] |
40 |
[% END %] |
41 |
</td> |
42 |
<td> |
43 |
[% IF column.cannot_be_toggled %] |
44 |
[% IF column.cannot_be_modified %] |
45 |
<input type="checkbox" name="[% pagename %]_[% tablename %]_[% column.columnname %]_cannot_be_toggled" value="1" checked="checked" disabled="disabled" /> |
46 |
<input type="hidden" name="[% pagename %]_[% tablename %]_[% column.columnname %]_cannot_be_toggled" value="1" /> |
47 |
[% ELSE %] |
48 |
<input type="checkbox" name="[% pagename %]_[% tablename %]_[% column.columnname %]_cannot_be_toggled" value="1" checked="checked" /> |
49 |
[% END %] |
50 |
[% ELSE %] |
51 |
[% IF column.cannot_be_modified %] |
52 |
<input type="checkbox" name="[% pagename %]_[% tablename %]_[% column.columnname %]_cannot_be_toggled" value="1" disabled="disabled" /> |
53 |
<input type="hidden" name="[% pagename %]_[% tablename %]_[% column.columnname %]_cannot_be_toggled" value="0" /> |
54 |
[% ELSE %] |
55 |
<input type="checkbox" name="[% pagename %]_[% tablename %]_[% column.columnname %]_cannot_be_toggled" value="1" /> |
56 |
[% END %] |
57 |
[% END %] |
58 |
</td> |
59 |
</tr> |
60 |
[% END %] |
61 |
</tbody> |
62 |
</table> |
63 |
[% END %] |
64 |
<input type="submit" value="Save" /> |
65 |
[% ELSE %] |
66 |
There is no table to configure for this module. |
67 |
[% END %] |
68 |
[% END %] |
69 |
[% ELSE %] |
70 |
There is no page using the table configuration in this module. |
71 |
[% END %] |
72 |
</form> |
73 |
</div> |
74 |
[% END %] |
75 |
|
76 |
[% INCLUDE 'doc-head-open.inc' %] |
77 |
<title>Koha › Administration › Columns settings</title> |
78 |
[% INCLUDE 'doc-head-close.inc' %] |
79 |
<script type="text/javascript"> |
80 |
$(document).ready( function() { |
81 |
var accordion = $( "#modules" ).accordion({ |
82 |
collapsible: true, |
83 |
autoHeight: false, |
84 |
header: "h3", |
85 |
active: [% panel %] |
86 |
}); |
87 |
}); |
88 |
</script> |
89 |
</head> |
90 |
<body id="admin_tables" class="admin"> |
91 |
[% INCLUDE 'header.inc' %] |
92 |
[% INCLUDE 'cat-search.inc' %] |
93 |
<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> |
94 |
|
95 |
<div id="doc3" class="yui-t2"> |
96 |
<div id="bd"> |
97 |
<div id="yui-main"> |
98 |
<div class="yui-b"> |
99 |
<h2>Columns settings</h2> |
100 |
<div id="modules"> |
101 |
<h3><a href="#acqui">Acquisition</a></h3> |
102 |
<div id="acqui"> |
103 |
<h4>Acquisition tables</h4> |
104 |
[% PROCESS pagelist module=modules.acqui modulename="acqui" %] |
105 |
</div> |
106 |
|
107 |
<h3><a href="#admin">Administration</a></h3> |
108 |
<div id="admin"> |
109 |
<h4>Administration tables</h4> |
110 |
[% PROCESS pagelist module=modules.admin modulename="admin" %] |
111 |
</div> |
112 |
|
113 |
<h3><a href="#authorities">Authorities</a></h3> |
114 |
<div id="authorities"> |
115 |
<h4>Authorities tables</h4> |
116 |
[% PROCESS pagelist module=modules.authorities modulename="authorities" %] |
117 |
</div> |
118 |
|
119 |
<h3><a href="#catalog">Catalog</a></h3> |
120 |
<div id="catalogue"> |
121 |
<h4>Catalogue tables</h4> |
122 |
[% PROCESS pagelist module=modules.catalogue modulename="catalogue" %] |
123 |
</div> |
124 |
|
125 |
<h3><a href="#cataloguing">Cataloging</a></h3> |
126 |
<div id="cataloguing"> |
127 |
<h4>Cataloguing tables</h4> |
128 |
[% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %] |
129 |
</div> |
130 |
|
131 |
<h3><a href="#circulation">Circulation</a></h3> |
132 |
<div id="circulation"> |
133 |
<h4>Circulation tables</h4> |
134 |
[% PROCESS pagelist module=modules.circ modulename="circ" %] |
135 |
</div> |
136 |
</div> |
137 |
</div> |
138 |
</div> |
139 |
|
140 |
<div class="yui-b"> |
141 |
[% INCLUDE 'admin-menu.inc' %] |
142 |
</div> |
143 |
</div> |
144 |
[% INCLUDE 'intranet-bottom.inc' %] |