]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/custom_variable_config/list.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / custom_variable_config / list.html
1 [% USE HTML %]
2 [% USE LxERP %]
3 [% USE L %]
4 [% USE T8 %]
5
6 <h1>[% title %]</h1>
7
8 [% INCLUDE 'common/flash.html' %]
9
10 <div class="wrapper">
11
12   <div class="select-item control-panel">
13    [% 'Custom variables for module' | $T8 %]
14    [% L.select_tag('module', SELF.modules, value_key='module', title_key='description', default=SELF.module, onchange='show_module_list()') %]
15   </div>
16
17   [% IF SELF.module == 'IC' %]
18     [% SET W="12.5%" %]
19   [% ELSE %]
20     [% SET W="20%" %]
21   [% END %]
22
23   <table id="cvarcfg_list" class="tbl-list wi-moderate">
24     <thead>
25       <tr>
26         <th><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]"></th>
27         <th>[% 'Name' | $T8 %]</th>
28         <th>[% 'Description' | $T8 %]</th>
29         <th>[% 'Type' | $T8 %]</th>
30         <th>[% 'Searchable' | $T8 %]</th>
31         <th>[% 'Includeable in reports' | $T8 %]</th>
32         [% IF SELF.module == 'IC' %]
33         <th>[% 'Editable' | $T8 %]</th>
34         <th>[% 'Deactivate by default' | $T8 %]</th>
35         <th>[% 'Filter by Partsgroups' | $T8 %]</th>
36         <th>[% 'Display in basic data tab' | $T8 %]</th>
37         [% END %]
38       </tr>
39     </thead>
40     <tbody>
41       [% FOREACH cfg = CONFIGS %]
42       <tr id="cvarcfg_id_[% cfg.id %]">
43         <td class="center dragdrop"><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]"></td>
44         <td><a href="[% SELF.url_for(action='edit', module=SELF.module, id=cfg.id) %]">[% HTML.escape(cfg.name) %]</a></td>
45         <td>[% HTML.escape(cfg.description) %]</td>
46         <td>[% HTML.escape(SELF.get_translation(cfg.type)) %]</td>
47         <td>[% IF cfg.searchable %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
48         <td>[% IF cfg.included_by_default %][% 'Yes, included by default' | $T8 %][% ELSIF cfg.includeable %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
49         [% IF SELF.module == 'IC' %]
50         <td>[% IF cfg.flags.match('editable=1') %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
51         <td>[% IF cfg.flags.match('defaults_to_invalid=1') %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
52         <td>[% IF cfg.flags.match('partsgroup_filter=1') %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
53         <td>[% IF cfg.first_tab %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
54         [% END %]
55       </tr>
56       [% END %]
57     </tbody>
58   </table>
59
60   [% L.sortable_element('#cvarcfg_list tbody', url=SELF.url_for(action='reorder'), with='cvarcfg_id', params='"&module=" + encodeURIComponent($("#module").val())') %]
61
62 </div><!-- /.wrapper -->
63
64 <script type="text/javascript"><!--
65   function show_module_list() {
66     window.location.href = '[% SELF.url_for(action='list') %]&module=' + encodeURIComponent($('#module').val());
67   }
68 --></script>