Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e78457b3

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

  • ID e78457b3d0e97b759edbbf2cd33ff28c922cbd1b
  • Vorgänger 145d7e84
  • Nachfolger eaadccae

Neues Design 2019 Standard-Code templates/webpages/price_rule/form.html

Unterschiede anzeigen:

templates/webpages/price_rule/form.html
6 6

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

  
9
[%- INCLUDE 'common/flash.html' %]
10

  
11
 <form method="post" action="controller.pl" id="form">
12
  [% L.hidden_tag("price_rule.id",   SELF.price_rule.id) %]
13
  [% L.hidden_tag("price_rule.type", SELF.price_rule.type) %]
14

  
15
  <table>
16
   <tr>
17
    <th align="right">[% 'Name' | $T8 %]</th>
18
    <td>[% L.input_tag("price_rule.name", SELF.price_rule.name, size=60, class='initial_focus') %]</td>
19
   </tr>
20
   <tr>
21
    <th align="right">[% 'Priority' | $T8 %]</th>
22
    <td>[% L.select_tag('price_rule.priority', [ [3, LxERP.t8('Normal') ], [ 4, LxERP.t8('Override') ] ], default=SELF.price_rule.priority, style='width: 300px') %]</td>
23
   </tr>
24

  
25
   <tr>
26
    <th align="right">[% 'Valid' | $T8 %]</th>
27
    <td>[% L.select_tag('price_rule.obsolete', [ [ 0, LxERP.t8('Valid') ], [ 1 , LxERP.t8('Obsolete')]], default=SELF.price_rule.obsolete, title_key='description', style='width: 300px') %]</td>
28
   </tr>
29

  
30
   <tr>
31
   <tr>
9
[% INCLUDE 'common/flash.html' %]
10

  
11
<form method="post" action="controller.pl" id="form">
12
[% L.hidden_tag("price_rule.id",   SELF.price_rule.id) %]
13
[% L.hidden_tag("price_rule.type", SELF.price_rule.type) %]
14

  
15
<div class="wrapper">
16

  
17
<table class="tbl-horizontal">
18
  <tbody>
19
    <tr>
20
       <th>[% 'Name' | $T8 %]</th>
21
       <td>[% L.input_tag("price_rule.name", SELF.price_rule.name, class='initial_focus wi-wide') %]</td>
22
    </tr>
23
    <tr>
24
       <th>[% 'Priority' | $T8 %]</th>
25
       <td>[% L.select_tag('price_rule.priority', [ [3, LxERP.t8('Normal') ], [ 4, LxERP.t8('Override') ] ], default=SELF.price_rule.priority, class='wi-normal') %]</td>
26
    </tr>
27
    <tr>
28
      <th>[% 'Valid' | $T8 %]</th>
29
      <td>[% L.select_tag('price_rule.obsolete', [ [ 0, LxERP.t8('Valid') ], [ 1 , LxERP.t8('Obsolete')]], default=SELF.price_rule.obsolete, title_key='description', class='wi-normal') %]</td>
30
    </tr>
31
  </tbody>
32
</table>
33

  
34

  
35

  
36
<div id="price_rule_items">
37
  <table class="tbl-list" style="clear:left;">
38
    <caption>[% 'If all of the following match' | $T8 %]:</caption>
39
    <thead><tr>
40
      <th class="center">X</th>
41
      <th>Objekt</th>
42
      <th>Bedingung</th>
43
      <th>Wert</th>
44
    </tr></thead>
45
    <tbody>
46
      [% FOREACH item = SELF.price_rule.items %]
47
         [% PROCESS 'price_rule/item.html' item=item %]
48
      [% END %]
49
    </tbody>
50
    <tbody id="price_rule_new_items"></tbody>
51
    <tfoot id="price_rule_emtpy_item" class="blank">[% PROCESS 'price_rule/empty_item.html' %]</tfoot>
32 52
  </table>
53
</div>
33 54

  
34
<h3>[% 'If all of the following match' | $T8 %]:</h3>
35

  
36
<div id='price_rule_items' style='margin-left: 20px;'>
37
  [% FOREACH item = SELF.price_rule.items %]
38
     [% PROCESS 'price_rule/item.html' item=item %]
39
  [% END %]
40
  <div id='price_rule_new_items'></div>
41
  <div>[% PROCESS 'price_rule/empty_item.html' %]</div>
55
<div class="input-panel control-panel">
56
  <h3>[% 'Then' | $T8 %]…</h3>
57
  <p>[% 'Set (set to)' | $T8 %] [% L.select_tag('price_rule.price_type', SELF.all_price_types, default=SELF.price_rule.price_type) %] [% 'to (set to)' | $T8 %] [% L.input_tag('price_rule.price_or_discount_as_number', SELF.price_rule.price_or_discount_as_number) %] <a id="price_rule_price_type_help" class="interact cursor-help" title="[% 'Price type explanation' | $T8 %]">[?]</a></p>
42 58
</div>
43 59

  
44
<h3>[% 'Then' | $T8 %]:</h3>
45
<div>[% 'Set (set to)' | $T8 %] [% L.select_tag('price_rule.price_type', SELF.all_price_types, default=SELF.price_rule.price_type) %] [% 'to (set to)' | $T8 %] [% L.input_tag('price_rule.price_or_discount_as_number', SELF.price_rule.price_or_discount_as_number) %] <a id='price_rule_price_type_help' class='interact cursor-help' title='[% 'Price type explanation' | $T8 %]'>[?]</a>
46 60
</div>
47
 </form>
61

  
62
</form>

Auch abrufbar als: Unified diff