Lines 23-36
Link Here
|
23 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 1 %] |
23 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 1 %] |
24 |
Jump to table: |
24 |
Jump to table: |
25 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
25 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
26 |
[% SET table_id = pagename _ '#' _ tablename %] |
26 |
[% SET table_id = pagename _ '|' _ tablename %] |
27 |
<a href="#[% table_id | uri %]">[% tablename | html %]</a> |
27 |
<a href="#[% table_id | uri %]">[% tablename | html %]</a> |
28 |
[% UNLESS loop.last %]<span class="separator"> | </span>[% END %] |
28 |
[% UNLESS loop.last %]<span class="separator"> | </span>[% END %] |
29 |
[% END %] |
29 |
[% END %] |
30 |
[% END %] |
30 |
[% END %] |
31 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %] |
31 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %] |
32 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
32 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
33 |
[% SET table_id = pagename _ '_' _ tablename %] |
33 |
[% SET table_id = pagename _ '|' _ tablename %] |
34 |
<div class="datatable_config" id="[% table_id | html %]"> |
34 |
<div class="datatable_config" id="[% table_id | html %]"> |
35 |
<input type="hidden" name="table_id" value="[% table_id| html %]" /> |
35 |
<input type="hidden" name="table_id" value="[% table_id| html %]" /> |
36 |
[% IF pagename == 'additem' AND tablename == 'itemst' %] |
36 |
[% IF pagename == 'additem' AND tablename == 'itemst' %] |
Lines 57-63
Link Here
|
57 |
</thead> |
57 |
</thead> |
58 |
<tbody> |
58 |
<tbody> |
59 |
[% FOR column IN tables.$pagename.$tablename.columns %] |
59 |
[% FOR column IN tables.$pagename.$tablename.columns %] |
60 |
[% SET value = pagename _ '#' _ tablename _ '#' _ column.columnname %] |
60 |
[% SET value = pagename _ '|' _ tablename _ '|' _ column.columnname %] |
61 |
<tr> |
61 |
<tr> |
62 |
<td> |
62 |
<td> |
63 |
[% column.columnname | html %] |
63 |
[% column.columnname | html %] |
Lines 137-143
Link Here
|
137 |
[% IF table_settings.default_sort_order.defined %] |
137 |
[% IF table_settings.default_sort_order.defined %] |
138 |
<p> |
138 |
<p> |
139 |
Default sort order: |
139 |
Default sort order: |
140 |
<select name="[% pagename | html %]#[% tablename | html %]_default_sort_order"> |
140 |
<select name="[% pagename | html %]|[% tablename | html %]_default_sort_order"> |
141 |
[% FOR column IN tables.$pagename.$tablename.columns %] |
141 |
[% FOR column IN tables.$pagename.$tablename.columns %] |
142 |
[% IF table_settings.default_sort_order == loop.count - 1 %] |
142 |
[% IF table_settings.default_sort_order == loop.count - 1 %] |
143 |
<option value="[% loop.count - 1 %]" selected="selected">[% column.columnname | html %]</option> |
143 |
<option value="[% loop.count - 1 %]" selected="selected">[% column.columnname | html %]</option> |
144 |
- |
|
|