Bug 11512: Update syspref description
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / columns_settings.tt
1 [% SET footerjs = 1 %]
2 [% SET panel_id = 0 %]
3 [% BLOCK pagelist %]
4 <div class="pagelist">
5   <form method="post" action="/cgi-bin/koha/admin/columns_settings.pl">
6     <input type="hidden" name="action" value="save" />
7     <input type="hidden" name="module" value="[% modulename %]" />
8     <input type="hidden" name="panel" value="[% panel_id %]" />
9     [% SET panel_id = panel_id + 1 %]
10     [% IF module.keys and module.keys.size > 0 %]
11       [% FOR pagename IN module.keys %]
12         <h5>[% pagename %]</h5>
13         [% SET tables = module %]
14         [% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %]
15           [% FOR tablename IN tables.$pagename.keys.sort %]
16             [% IF pagename == 'additem' AND tablename == 'itemst' %]
17               <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>
18             [% END %]
19             <table>
20               <caption>
21                 [% IF tablename == 'currencies-table' %]
22                   Currency
23                 [% ELSIF pagename == 'additem' AND tablename == 'itemst' %]
24                   Items Editor
25                 [% END %]
26                 (id=[% tablename %])
27               </caption>
28               <thead><tr><th>Column name</th><th>Is hidden by default</th><th>Cannot be toggled</th></tr></thead>
29               <tbody>
30               [% FOR column IN tables.$pagename.$tablename %]
31                 [% SET value = pagename _ '#' _ tablename _ '#' _ column.columnname %]
32                 <tr>
33                   <td>
34                     [% column.columnname %]
35                     <input type="hidden" name="columnid" value="[% value %]" />
36                   </td>
37                   <td>
38                     [% IF column.is_hidden %]
39                       [% IF column.cannot_be_modified %]
40                         <input type="checkbox" name="[% value %]_hidden" value="1" checked="checked" disabled="disabled" />
41                         <input type="hidden" name="[% value %]_hidden" value="1" />
42                       [% ELSE %]
43                         <input type="checkbox" name="[% value %]_hidden" value="1" checked="checked" />
44                       [% END %]
45                     [% ELSE %]
46                       [% IF column.cannot_be_modified %]
47                         <input type="checkbox" name="[% value %]_hidden" value="1" disabled="disabled" />
48                         <input type="hidden" name="[% value %]_hidden" value="0" />
49                       [% ELSE %]
50                         <input type="checkbox" name="[% value %]_hidden" value="1" />
51                       [% END %]
52                     [% END %]
53                   </td>
54                   <td>
55                     [% IF column.cannot_be_toggled %]
56                       [% IF column.cannot_be_modified %]
57                         <input type="checkbox" name="[% value %]_cannot_be_toggled" value="1" checked="checked" disabled="disabled" />
58                         <input type="hidden" name="[% value %]_cannot_be_toggled" value="1" />
59                       [% ELSE %]
60                         <input type="checkbox" name="[% value %]_cannot_be_toggled" value="1" checked="checked" />
61                       [% END %]
62                     [% ELSE %]
63                       [% IF column.cannot_be_modified %]
64                         <input type="checkbox" name="[% value %]_cannot_be_toggled" value="1" disabled="disabled" />
65                         <input type="hidden" name="[% value %]_cannot_be_toggled" value="0" />
66                       [% ELSE %]
67                         <input type="checkbox" name="[% value %]_cannot_be_toggled" value="1" />
68                       [% END %]
69                     [% END %]
70                   </td>
71                 </tr>
72               [% END %]
73               </tbody>
74             </table>
75           [% END %]
76           <input type="submit" value="Save" />
77         [% ELSE %]
78           There is no table to configure for this module.
79         [% END %]
80       [% END %]
81     [% ELSE %]
82         There is no page using the table configuration in this module.
83     [% END %]
84   </form>
85 </div>
86 [% END %]
87
88 [% INCLUDE 'doc-head-open.inc' %]
89 <title>Koha &rsaquo; Administration &rsaquo; Columns settings</title>
90 [% INCLUDE 'doc-head-close.inc' %]
91 </head>
92
93 <body id="admin_tables" class="admin">
94 [% INCLUDE 'header.inc' %]
95 [% INCLUDE 'prefs-admin-search.inc' %]
96 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Columns settings</div>
97
98 <div id="doc3" class="yui-t2">
99   <div id="bd">
100     <div id="yui-main">
101       <div class="yui-b">
102         <h2>Columns settings</h2>
103         <div id="modules">
104           <h3><a href="#acqui">Acquisition</a></h3>
105           <div id="acqui">
106             <h4>Acquisition tables</h4>
107             [% PROCESS pagelist module=modules.acqui modulename="acqui" %]
108           </div>
109
110           <h3><a href="#admin">Administration</a></h3>
111           <div id="admin">
112             <h4>Administration tables</h4>
113             [% PROCESS pagelist module=modules.admin modulename="admin" %]
114           </div>
115
116           <h3><a href="#authorities">Authorities</a></h3>
117           <div id="authorities">
118             <h4>Authorities tables</h4>
119             [% PROCESS pagelist module=modules.authorities modulename="authorities" %]
120           </div>
121
122           <h3><a href="#catalog">Catalog</a></h3>
123           <div id="catalogue">
124             <h4>Catalogue tables</h4>
125             [% PROCESS pagelist module=modules.catalogue modulename="catalogue" %]
126           </div>
127
128           <h3><a href="#cataloguing">Cataloging</a></h3>
129           <div id="cataloguing">
130             <h4>Cataloguing tables</h4>
131             [% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %]
132           </div>
133
134           <h3><a href="#circulation">Circulation</a></h3>
135           <div id="circulation">
136             <h4>Circulation tables</h4>
137             [% PROCESS pagelist module=modules.circ modulename="circ" %]
138           </div>
139
140           <h3><a href="#members">Patrons</a></h3>
141           <div id="members">
142             <h4>Patrons tables</h4>
143             [% PROCESS pagelist module=modules.members modulename="members" %]
144           </div>
145
146           <h3><a href="#opac">OPAC</a></h3>
147           <div id="opac">
148             <h4>OPAC tables</h4>
149             [% PROCESS pagelist module=modules.opac modulename="opac" %]
150           </div>
151
152           <h3><a href="#reports">Reports</a></h3>
153           <div id="reports">
154             <h4>Reports tables</h4>
155             [% PROCESS pagelist module=modules.reports modulename="reports" %]
156           </div>
157
158         </div>
159       </div>
160     </div>
161
162     <div class="yui-b">
163       [% INCLUDE 'admin-menu.inc' %]
164     </div>
165   </div>
166
167 [% MACRO jsinclude BLOCK %]
168     <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
169     <script type="text/javascript">
170         $(document).ready( function() {
171             var accordion = $( "#modules" ).accordion({
172                 collapsible: true,
173                 autoHeight: false,
174                 header: "h3",
175               [%- IF panel -%]
176                 [%# we were asked to show a specific panel, usually on update %]
177                 active: [%- panel -%]
178               [%- ELSE -%]
179                 active: false
180               [%- END -%]
181             });
182         });
183     </script>
184 [% END %]
185 [% INCLUDE 'intranet-bottom.inc' %]