Revision 66e87533
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/price_rule/form.html | ||
---|---|---|
|
||
<h1>[% title %]</h1>
|
||
|
||
[%- INCLUDE 'common/flash.html' %]
|
||
|
||
<form method="post" action="controller.pl" id="form">
|
||
[% L.hidden_tag("price_rule.id", SELF.price_rule.id) %]
|
||
[% L.hidden_tag("price_rule.type", SELF.price_rule.type) %]
|
||
|
||
<table>
|
||
<tr>
|
||
<th align="right">[% 'Name' | $T8 %]</th>
|
||
<td>[% L.input_tag("price_rule.name", SELF.price_rule.name, size=60, class='initial_focus') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Priority' | $T8 %]</th>
|
||
<td>[% L.select_tag('price_rule.priority', [ [3, LxERP.t8('Normal') ], [ 4, LxERP.t8('Override') ] ], default=SELF.price_rule.priority, style='width: 300px') %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'Valid' | $T8 %]</th>
|
||
<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>
|
||
</tr>
|
||
|
||
<tr>
|
||
<tr>
|
||
[% INCLUDE 'common/flash.html' %]
|
||
|
||
<form method="post" action="controller.pl" id="form">
|
||
[% L.hidden_tag("price_rule.id", SELF.price_rule.id) %]
|
||
[% L.hidden_tag("price_rule.type", SELF.price_rule.type) %]
|
||
|
||
<div class="wrapper">
|
||
|
||
<table class="tbl-horizontal">
|
||
<tbody>
|
||
<tr>
|
||
<th>[% 'Name' | $T8 %]</th>
|
||
<td>[% L.input_tag("price_rule.name", SELF.price_rule.name, class='initial_focus wi-wide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Priority' | $T8 %]</th>
|
||
<td>[% L.select_tag('price_rule.priority', [ [3, LxERP.t8('Normal') ], [ 4, LxERP.t8('Override') ] ], default=SELF.price_rule.priority, class='wi-normal') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Valid' | $T8 %]</th>
|
||
<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>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
|
||
|
||
<div id="price_rule_items">
|
||
<table class="tbl-list" style="clear:left;">
|
||
<caption>[% 'If all of the following match' | $T8 %]:</caption>
|
||
<thead><tr>
|
||
<th class="center">X</th>
|
||
<th>Objekt</th>
|
||
<th>Bedingung</th>
|
||
<th>Wert</th>
|
||
</tr></thead>
|
||
<tbody>
|
||
[% FOREACH item = SELF.price_rule.items %]
|
||
[% PROCESS 'price_rule/item.html' item=item %]
|
||
[% END %]
|
||
</tbody>
|
||
<tbody id="price_rule_new_items"></tbody>
|
||
<tfoot id="price_rule_emtpy_item" class="blank">[% PROCESS 'price_rule/empty_item.html' %]</tfoot>
|
||
</table>
|
||
</div>
|
||
|
||
<h3>[% 'If all of the following match' | $T8 %]:</h3>
|
||
|
||
<div id='price_rule_items' style='margin-left: 20px;'>
|
||
[% FOREACH item = SELF.price_rule.items %]
|
||
[% PROCESS 'price_rule/item.html' item=item %]
|
||
[% END %]
|
||
<div id='price_rule_new_items'></div>
|
||
<div>[% PROCESS 'price_rule/empty_item.html' %]</div>
|
||
<div class="input-panel control-panel">
|
||
<h3>[% 'Then' | $T8 %]…</h3>
|
||
<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>
|
||
</div>
|
||
|
||
<h3>[% 'Then' | $T8 %]:</h3>
|
||
<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>
|
||
</div>
|
||
</form>
|
||
|
||
</form>
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/price_rule/form.html