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