Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 738bc135

Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID 738bc135dceca99726e15a820462c89e4f999a88
  • Vorgänger bf8e932b
  • Nachfolger a4270a49

USE-Einleitungen formatiert templates/webpages/custom_variable_config/list.html

Unterschiede anzeigen:

templates/webpages/custom_variable_config/list.html
5 5

  
6 6
<h1>[% title %]</h1>
7 7

  
8
<p>
9 8
[% INCLUDE 'common/flash.html' %]
10 9

  
10
<div class="wrapper">
11

  
12
<div class="select-item control-panel">
11 13
 [% 'Custom variables for module' | $T8 %]
12 14
 [% L.select_tag('module', SELF.modules, value_key='module', title_key='description', default=SELF.module, onchange='show_module_list()') %]
13
</p>
15
</div>
16

  
17
[% IF SELF.module == 'IC' %]
18
  [% SET W="12.5%" %]
19
[% ELSE %]
20
  [% SET W="20%" %]
21
[% END %]
14 22

  
15
[%- IF SELF.module == 'IC' %]
16
  [%- SET W="12.5%" %]
17
[%- ELSE %]
18
  [%- SET W="20%" %]
19
[%- END %]
20
<p>
21
 <table width="100%" id="cvarcfg_list">
23
<table id="cvarcfg_list" class="tbl-list wi-moderate">
22 24
  <thead>
23
   <tr class="listheading">
24
    <th align="center"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
25
    <th width="[%- W -%]">[% 'Name' | $T8 %]</th>
26
    <th width="[%- W -%]">[% 'Description' | $T8 %]</th>
27
    <th width="[%- W -%]">[% 'Type' | $T8 %]</th>
28
    <th width="[%- W -%]">[% 'Searchable' | $T8 %]</th>
29
    <th width="[%- W -%]">[% 'Includeable in reports' | $T8 %]</th>
30
    [%- IF SELF.module == 'IC' %]
31
     <th width="[%- W -%]">[% 'Editable' | $T8 %]</th>
32
     <th width="[%- W -%]">[% 'Deactivate by default' | $T8 %]</th>
33
     <th width="[%- W -%]">[% 'Filter by Partsgroups' | $T8 %]</th>
34
    [%- END %]
35
   </tr>
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
      [% END %]
37
    </tr>
36 38
  </thead>
37

  
38 39
  <tbody>
39
   [%- FOREACH cfg = CONFIGS %]
40
    <tr class="listrow" id="cvarcfg_id_[% cfg.id %]">
41
     <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
42

  
43
     <td><a href="[% SELF.url_for(action='edit', module=SELF.module, id=cfg.id) %]">[% HTML.escape(cfg.name) %]</a></td>
44

  
45
     <td>[% HTML.escape(cfg.description) %]</td>
46
     <td>[% HTML.escape(SELF.get_translation(cfg.type)) %]</td>
47

  
48
     <td>[%- IF cfg.searchable %][% 'Yes' | $T8 %][%- ELSE %][% 'No' | $T8 %][%- END %]</td>
49

  
50
     <td>[%- IF cfg.included_by_default %][% 'Yes, included by default' | $T8 %][%- ELSIF cfg.includeable %][% 'Yes' | $T8 %][%- ELSE %][% 'No' | $T8 %][%- END %]</td>
51

  
52
     [%- IF SELF.module == 'IC' %]
53
      <td>[%- IF cfg.flags.match('editable=1') %][% 'Yes' | $T8 %][%- ELSE %][% 'No' | $T8 %][%- END %]</td>
54
      <td>[%- IF cfg.flags.match('defaults_to_invalid=1') %][% 'Yes' | $T8 %][%- ELSE %][% 'No' | $T8 %][%- END %]</td>
55
      <td>[%- IF cfg.flags.match('partsgroup_filter=1') %][% 'Yes' | $T8 %][%- ELSE %][% 'No' | $T8 %][%- END %]</td>
56
     [%- END %]
57
    </tr>
58
    [%- END %]
40
    [% FOREACH cfg = CONFIGS %]
41
      <tr id="cvarcfg_id_[% cfg.id %]">
42
        <td class="center dragdrop"><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]"></td>
43
        <td><a href="[% SELF.url_for(action='edit', module=SELF.module, id=cfg.id) %]">[% HTML.escape(cfg.name) %]</a></td>
44
        <td>[% HTML.escape(cfg.description) %]</td>
45
        <td>[% HTML.escape(SELF.get_translation(cfg.type)) %]</td>
46
        <td>[% IF cfg.searchable %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
47
        <td>[% IF cfg.included_by_default %][% 'Yes, included by default' | $T8 %][% ELSIF cfg.includeable %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
48
        [% IF SELF.module == 'IC' %]
49
          <td>[% IF cfg.flags.match('editable=1') %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
50
          <td>[% IF cfg.flags.match('defaults_to_invalid=1') %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
51
          <td>[% IF cfg.flags.match('partsgroup_filter=1') %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
52
        [% END %]
53
      </tr>
54
    [% END %]
59 55
  </tbody>
60 56
 </table>
61
</p>
62 57

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

  
65
<script type="text/javascript">
66
<!--
60
</div><!-- /.wrapper -->
61

  
62
<script type="text/javascript"><!--
67 63
  function show_module_list() {
68 64
    window.location.href = '[% SELF.url_for(action='list') %]&module=' + encodeURIComponent($('#module').val());
69 65
  }
70
-->
71
</script>
66
--></script>

Auch abrufbar als: Unified diff