Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 03256690

Von Werner Hahn vor fast 2 Jahren hinzugefügt

  • ID 03256690bf650c915e7ccb081e4106cba36f5c05
  • Vorgänger 29b90e2a
  • Nachfolger 8033101a

Design 4.0 Einrückungen BDV Liste

Unterschiede anzeigen:

templates/design40_webpages/custom_variable_config/list.html
9 9

  
10 10
<div class="wrapper">
11 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>
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 16

  
17
[% IF SELF.module == 'IC' %]
18
  [% SET W="12.5%" %]
19
[% ELSE %]
20
  [% SET W="20%" %]
21
[% END %]
17
  [% IF SELF.module == 'IC' %]
18
    [% SET W="12.5%" %]
19
  [% ELSE %]
20
    [% SET W="20%" %]
21
  [% END %]
22 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' %]
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 33
        <th>[% 'Editable' | $T8 %]</th>
34 34
        <th>[% 'Deactivate by default' | $T8 %]</th>
35 35
        <th>[% 'Filter by Partsgroups' | $T8 %]</th>
36 36
        <th>[% 'Display in basic data tab' | $T8 %]</th>
37
      [% END %]
38
    </tr>
39
  </thead>
40
  <tbody>
41
    [% FOREACH cfg = CONFIGS %]
37
        [% END %]
38
      </tr>
39
    </thead>
40
    <tbody>
41
      [% FOREACH cfg = CONFIGS %]
42 42
      <tr id="cvarcfg_id_[% cfg.id %]">
43 43
        <td class="center dragdrop"><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]"></td>
44 44
        <td><a href="[% SELF.url_for(action='edit', module=SELF.module, id=cfg.id) %]">[% HTML.escape(cfg.name) %]</a></td>
......
47 47
        <td>[% IF cfg.searchable %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
48 48
        <td>[% IF cfg.included_by_default %][% 'Yes, included by default' | $T8 %][% ELSIF cfg.includeable %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
49 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>
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 54
        [% END %]
55 55
      </tr>
56
    [% END %]
57
  </tbody>
58
 </table>
56
      [% END %]
57
    </tbody>
58
  </table>
59 59

  
60
[% L.sortable_element('#cvarcfg_list tbody', url=SELF.url_for(action='reorder'), with='cvarcfg_id', params='"&module=" + encodeURIComponent($("#module").val())') %]
60
  [% L.sortable_element('#cvarcfg_list tbody', url=SELF.url_for(action='reorder'), with='cvarcfg_id', params='"&module=" + encodeURIComponent($("#module").val())') %]
61 61

  
62 62
</div><!-- /.wrapper -->
63 63

  

Auch abrufbar als: Unified diff