Lines 1-7
Link Here
|
1 |
[% USE raw %] |
1 |
[% USE raw %] |
2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
|
|
3 |
[% USE TablesSettings %] |
3 |
[% SET footerjs = 1 %] |
4 |
[% SET footerjs = 1 %] |
4 |
[% SET panel_id = 0 %] |
5 |
[% SET panel_id = 0 %] |
|
|
6 |
[% USE Dumper %] |
5 |
[% BLOCK pagelist %] |
7 |
[% BLOCK pagelist %] |
6 |
[% IF module.keys and module.keys.size > 0 %] |
8 |
[% IF module.keys and module.keys.size > 0 %] |
7 |
Jump to: |
9 |
Jump to: |
Lines 22-93
Link Here
|
22 |
[% SET tables = module %] |
24 |
[% SET tables = module %] |
23 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %] |
25 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %] |
24 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
26 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
25 |
[% IF pagename == 'additem' AND tablename == 'itemst' %] |
27 |
[% SET table_id = pagename _ '#' _ tablename %] |
26 |
<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> |
28 |
<div class="datatable_config" id="[% table_id | html %]" style="border:1px solid #7EA6B2; padding: 1em;"> |
27 |
[% END %] |
29 |
<input type="hidden" name="table_id" value="[% table_id| html %]" /> |
28 |
<table> |
30 |
[% IF pagename == 'additem' AND tablename == 'itemst' %] |
29 |
<caption> |
31 |
<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> |
30 |
[% IF tablename == 'currencies-table' %] |
32 |
[% END %] |
31 |
Currency |
33 |
<table> |
32 |
[% ELSIF pagename == 'additem' AND tablename == 'itemst' %] |
34 |
<caption> |
33 |
Items Editor |
35 |
[% IF tablename == 'currencies-table' %] |
34 |
[% ELSE %] |
36 |
Currency |
35 |
Table id: [% tablename | html %] |
37 |
[% ELSIF pagename == 'additem' AND tablename == 'itemst' %] |
36 |
[% END %] |
38 |
Items Editor |
37 |
</caption> |
39 |
[% ELSE %] |
38 |
<thead> |
40 |
Table id: [% tablename | html %] |
39 |
<tr> |
41 |
[% END %] |
40 |
<th>Column name</th> |
42 |
</caption> |
41 |
<th>Is hidden by default</th> |
43 |
<thead> |
42 |
<th>Cannot be toggled</th> |
|
|
43 |
</tr> |
44 |
</thead> |
45 |
<tbody> |
46 |
[% FOR column IN tables.$pagename.$tablename %] |
47 |
[% SET value = pagename _ '#' _ tablename _ '#' _ column.columnname %] |
48 |
<tr> |
44 |
<tr> |
49 |
<td> |
45 |
<th>Column name</th> |
50 |
[% column.columnname | html %] |
46 |
<th>Is hidden by default</th> |
51 |
<input type="hidden" name="columnid" value="[% value | html %]" /> |
47 |
<th>Cannot be toggled</th> |
52 |
</td> |
48 |
</tr> |
53 |
<td> |
49 |
</thead> |
54 |
[% IF column.is_hidden %] |
50 |
<tbody> |
55 |
[% IF column.cannot_be_modified %] |
51 |
[% FOR column IN tables.$pagename.$tablename.columns %] |
56 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" checked="checked" disabled="disabled" /> |
52 |
[% SET value = pagename _ '#' _ tablename _ '#' _ column.columnname %] |
57 |
<input type="hidden" name="[% value | html %]_hidden" value="1" /> |
53 |
<tr> |
58 |
[% ELSE %] |
54 |
<td> |
59 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" checked="checked" /> |
55 |
[% column.columnname | html %] |
60 |
[% END %] |
56 |
<input type="hidden" name="columnid" value="[% value | html %]" /> |
61 |
[% ELSE %] |
57 |
</td> |
62 |
[% IF column.cannot_be_modified %] |
58 |
<td> |
63 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" disabled="disabled" /> |
59 |
[% IF column.is_hidden %] |
64 |
<input type="hidden" name="[% value | html %]_hidden" value="0" /> |
60 |
[% IF column.cannot_be_modified %] |
|
|
61 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" checked="checked" disabled="disabled" /> |
62 |
<input type="hidden" name="[% value | html %]_hidden" value="1" /> |
63 |
[% ELSE %] |
64 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" checked="checked" /> |
65 |
[% END %] |
65 |
[% ELSE %] |
66 |
[% ELSE %] |
66 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" /> |
67 |
[% IF column.cannot_be_modified %] |
|
|
68 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" disabled="disabled" /> |
69 |
<input type="hidden" name="[% value | html %]_hidden" value="0" /> |
70 |
[% ELSE %] |
71 |
<input type="checkbox" name="[% value | html %]_hidden" value="1" /> |
72 |
[% END %] |
67 |
[% END %] |
73 |
[% END %] |
68 |
[% END %] |
74 |
</td> |
69 |
</td> |
75 |
<td> |
70 |
<td> |
76 |
[% IF column.cannot_be_toggled %] |
71 |
[% IF column.cannot_be_toggled %] |
77 |
[% IF column.cannot_be_modified %] |
72 |
[% IF column.cannot_be_modified %] |
78 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" checked="checked" disabled="disabled" /> |
73 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" checked="checked" disabled="disabled" /> |
79 |
<input type="hidden" name="[% value | html %]_cannot_be_toggled" value="1" /> |
74 |
<input type="hidden" name="[% value | html %]_cannot_be_toggled" value="1" /> |
80 |
[% ELSE %] |
|
|
81 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" checked="checked" /> |
82 |
[% END %] |
75 |
[% ELSE %] |
83 |
[% ELSE %] |
76 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" checked="checked" /> |
84 |
[% IF column.cannot_be_modified %] |
|
|
85 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" disabled="disabled" /> |
86 |
<input type="hidden" name="[% value | html %]_cannot_be_toggled" value="0" /> |
87 |
[% ELSE %] |
88 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" /> |
89 |
[% END %] |
77 |
[% END %] |
90 |
[% END %] |
|
|
91 |
</td> |
92 |
</tr> |
93 |
[% END %] |
94 |
</tbody> |
95 |
</table> |
96 |
[% SET table_settings = TablesSettings.GetTableSettings( modulename, pagename, tablename ) %] |
97 |
[% IF table_settings.default_display_length %] |
98 |
<p> |
99 |
Default display length: |
100 |
<select name="[% table_id | html %]_default_display_length"> |
101 |
[% IF table_settings.default_display_length == 10 %] |
102 |
<option value="10" selected="selected">10</option> |
103 |
[% ELSE %] |
104 |
[% END %] |
105 |
[% IF table_settings.default_display_length == 20 %] |
106 |
<option value="20" selected="selected">20</option> |
107 |
[% ELSE %] |
108 |
<option value="20">20</option> |
109 |
[% END %] |
110 |
[% IF table_settings.default_display_length == 50 %] |
111 |
<option value="50" selected="selected">50</option> |
112 |
[% ELSE %] |
113 |
<option value="50">50</option> |
114 |
[% END %] |
115 |
[% IF table_settings.default_display_length == 100 %] |
116 |
<option value="100" selected="selected">100</option> |
117 |
[% ELSE %] |
118 |
<option value="100">100</option> |
119 |
[% END %] |
120 |
[% IF table_settings.default_display_length == -1 %] |
121 |
<option value="-1" selected="selected">All</option> |
122 |
[% ELSE %] |
123 |
<option value="-1">All</option> |
124 |
[% END %] |
125 |
</select> |
126 |
</p> |
127 |
[% END %] |
128 |
[% IF table_settings.default_sort_order.defined %] |
129 |
<p> |
130 |
Default sort order: |
131 |
<select name="[% pagename | html %]#[% tablename | html %]_default_sort_order"> |
132 |
[% FOR column IN tables.$pagename.$tablename.columns %] |
133 |
[% IF table_settings.default_sort_order == loop.count - 1 %] |
134 |
<option value="[% loop.count - 1 %]" selected="selected">[% column.columnname | html %]</option> |
78 |
[% ELSE %] |
135 |
[% ELSE %] |
79 |
[% IF column.cannot_be_modified %] |
136 |
<option value="[% loop.count - 1 %]">[% column.columnname | html %]</option> |
80 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" disabled="disabled" /> |
|
|
81 |
<input type="hidden" name="[% value | html %]_cannot_be_toggled" value="0" /> |
82 |
[% ELSE %] |
83 |
<input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" /> |
84 |
[% END %] |
85 |
[% END %] |
137 |
[% END %] |
86 |
</td> |
138 |
[% END %] |
87 |
</tr> |
139 |
</select> |
88 |
[% END %] |
140 |
</p> |
89 |
</tbody> |
141 |
[% END %] |
90 |
</table> |
142 |
|
|
|
143 |
</div> |
91 |
[% END %] |
144 |
[% END %] |
92 |
<fieldset class="action"> |
145 |
<fieldset class="action"> |
93 |
<input type="submit" value="Save" /> |
146 |
<input type="submit" value="Save" /> |