8 [% INCLUDE 'common/flash.html' %]
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()') %]
17 [% IF SELF.module == 'IC' %]
23 <table id="cvarcfg_list" class="tbl-list wi-moderate">
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>
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>
60 [% L.sortable_element('#cvarcfg_list tbody', url=SELF.url_for(action='reorder'), with='cvarcfg_id', params='"&module=" + encodeURIComponent($("#module").val())') %]
62 </div><!-- /.wrapper -->
64 <script type="text/javascript"><!--
65 function show_module_list() {
66 window.location.href = '[% SELF.url_for(action='list') %]&module=' + encodeURIComponent($('#module').val());