Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5b8ff438

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID 5b8ff438672be40b321bbe27e01ae852a3bb9045
  • Vorgänger 99621954
  • Nachfolger 867b69c4

Neues kivitendo Design restliche Aenderungen in templates/webpages/c*

Dateien in ca/* chart/* cp/* ct/* cti/* custom_variable_config/*

Unterschiede anzeigen:

templates/webpages/custom_variable_config/list.html
1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%][%- INCLUDE 'common/flash.html' %]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4
[% USE T8 %]
2 5

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

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

  
10
<div class="wrapper">
11

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

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

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

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

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

  
40
     <td>[% HTML.escape(cfg.description) %]</td>
41
     <td>[% HTML.escape(SELF.get_translation(cfg.type)) %]</td>
42

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

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

  
47
     [%- IF SELF.module == 'IC' %]
48
      <td>[%- IF cfg.flags.match('editable=1') %][% 'Yes' | $T8 %][%- ELSE %][% 'No' | $T8 %][%- END %]</td>
49
      <td>[%- IF cfg.flags.match('defaults_to_invalid=1') %][% 'Yes' | $T8 %][%- ELSE %][% 'No' | $T8 %][%- END %]</td>
50
      <td>[%- IF cfg.flags.match('partsgroup_filter=1') %][% 'Yes' | $T8 %][%- ELSE %][% 'No' | $T8 %][%- END %]</td>
51
     [%- END %]
52
    </tr>
53
    [%- 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 %]
54 55
  </tbody>
55 56
 </table>
56
</p>
57 57

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

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

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

Auch abrufbar als: Unified diff