1 [%- USE T8 %][% USE LxERP %][% USE L %]
4 [% IF MESSAGE %]<p>[% MESSAGE %]</p>[% END %]
6 <div class="listtop">[% title %]</div>
8 <form method="post" action="amcvar.pl">
9 <input type="hidden" name="action" value="dispatcher">
10 <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
13 [% 'Custom variables for module' | $T8 %]
14 [%- INCLUDE generic/multibox.html
17 label_key = 'description',
19 <input type="submit" class="submit" name="action_list_cvar_configs" value="[% 'Show' | $T8 %]">
23 <table width="100%" id="cvarcfg_list">
25 <tr class="listheading">
26 <th align="center"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></th>
27 <th width="20%">[% 'Name' | $T8 %]</th>
28 <th width="20%">[% 'Description' | $T8 %]</th>
29 <th width="20%">[% 'Type' | $T8 %]</th>
30 <th width="20%">[% 'Searchable' | $T8 %]</th>
31 <th width="20%">[% 'Includeable in reports' | $T8 %]</th>
32 [%- IF module == 'IC' %]
33 <th width="20%">[% 'Editable' | $T8 %]</th>
39 [%- FOREACH cfg = CONFIGS %]
40 <tr class="listrow[% loop.count % 2 %]" id="cvarcfg_id_[% cfg.id %]">
41 <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
44 <a href="amcvar.pl?action=edit_cvar_config&module=[% HTML.url(module) %]&id=[% HTML.url(cfg.id) %]&callback=[% HTML.url(callback) %]">
45 [% HTML.escape(cfg.name) %]
49 <td>[% HTML.escape(cfg.description) %]</td>
50 <td>[% HTML.escape(cfg.type_tr) %]</td>
53 [%- IF cfg.searchable %]
61 [%- IF cfg.included_by_default %]
62 [% 'Yes, included by default' | $T8 %]
63 [%- ELSIF cfg.includeable %]
70 [%- IF module == 'IC' %]
72 [%- IF cfg.flag_editable %]
88 <a href="amcvar.pl?action=add_cvar_config&callback=[% HTML.url(callback) %]">[%- 'Add' | $T8 %]</a>
92 [% L.sortable_element('#cvarcfg_list tbody', url => 'controller.pl?action=CustomVariableConfig/reorder', with => 'cvarcfg_id') %]