[%- USE T8 %]
[%- USE HTML %]
[%- USE LxERP %]
-
- <form method="post" action="ic.pl">
-
- <input type="hidden" name="title" value="[% 'Update prices' | $T8 %]">
-
- <div class="listtop">[% 'Update prices' | $T8 %]</div>
-
- <p>
- <table>
- <tr>
- <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
- <td><input name="partnumber" size="20"></td>
- </tr>
-
- <tr>
- <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
- <td colspan="3"><input name="description" size="20"></td>
- </tr>
-
- <tr>
- <th align="right" nowrap>[% 'Group' | $T8 %]</th>
- <td><input name="partsgroup" size="20"></td>
- <th align="right" nowrap>[% 'Serial Number' | $T8 %]</th>
- <td><input name="serialnumber" size="20"></td>
- </tr>
-
- <tr>
- <th align="right" nowrap>[% 'Make' | $T8 %]</th>
- <td><input name="make" size="20"></td>
- <th align="right" nowrap>[% 'Model' | $T8 %]</th>
- <td><input name="model" size="20"></td>
- </tr>
-
- <tr>
- <th align="right" nowrap>[% 'Drawing' | $T8 %]</th>
- <td><input name="drawing" size="20"></td>
- <th align="right" nowrap>[% 'Microfiche' | $T8 %]</th>
- <td><input name="microfiche" size="20"></td>
- </tr>
-
- <tr>
- <td></td>
- <td colspan="3">
- <input name="itemstatus" id="itemstatus_active" class="radio" type="radio" value="active" checked>
- <label for="itemstatus_active">[% 'Active' | $T8 %]</label>
- <input name="itemstatus" id="itemstatus_onhand" class="radio" type="radio" value="onhand">
- <label for="itemstatus_onhand">[% 'On Hand' | $T8 %]</label>
- <input name="itemstatus" id="itemstatus_short" class="radio" type="radio" value="short">
- <label for="itemstatus_short">[% 'Short' | $T8 %]</label>
- <input name="itemstatus" id="itemstatus_obsolete" class="radio" type="radio" value="obsolete">
- <label for="itemstatus_obsolete">[% 'Obsolete' | $T8 %]</label>
- <input name="itemstatus" id="itemstatus_orphaned" class="radio" type="radio" value="orphaned">
- <label for="itemstatus_orphaned">[% 'Orphaned' | $T8 %]</label>
- </td>
- </tr>
- </table>
- </p>
-
- <hr size="1" noshade>
-
- <p>
- <table>
- <tr>
- <th class="listheading">[% 'Preisklasse' | $T8 %]</th>
- <th class="listheading">[% 'Preis' | $T8 %]</th>
- <th class="listheading">[% 'Prozentual/Absolut' | $T8 %]</th>
- </tr>
-
- <tr>
- <td>[% 'Sell Price' | $T8 %]</td>
- <td><input name="sellprice" size="11" value="[% HTML.escape(sellprice) %]"></td>
- <td align="center">
- <input name="sellprice_type" class="radio" type="radio" value="percent" checked> /
- <input name="sellprice_type" class="radio" type="radio" value="absolut">
- </td>
- </tr>
-
- <tr>
- <td>[% 'List Price' | $T8 %]</td>
- <td><input name="listprice" size="11" value="[% HTML.escape(listprice) %]"></td>
- <td align="center">
- <input name="listprice_type" class="radio" type="radio" value="percent" checked> /
- <input name="listprice_type" class="radio" type="radio" value="absolut">
- </td>
- </tr>
-
- [%- FOREACH row = PRICE_ROWS %]
- <input type="hidden" name="pricegroup_id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
-
- <tr>
- <td><input type="hidden" name="pricegroup_[% loop.count %]" size="30" value="[% HTML.escape(row.pricegroup) %]">[% HTML.escape(row.pricegroup) %]</td>
- <td><input name="price_[% loop.count %]" size="11"></td>
- <td align="center">
- <input name="pricegroup_type_[% loop.count %]" class="radio" type="radio" value="percent" checked> /
- <input name="pricegroup_type_[% loop.count %]" class="radio" type="radio" value="absolut">
- </td>
- </tr>
- [%- END %]
-
- </table>
- </p>
-
- <hr size="3" noshade>
-
- <input type="hidden" name="nextsub" value="confirm_price_update">
- <input type="hidden" name="price_rows" value="[% HTML.escape(price_rows) %]">
-
- <p>
- <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
- </p>
- </form>
-
+[%- USE L %]
+<h1>[% 'Update prices' | $T8 %]</h1>
+
+[% INCLUDE 'common/flash.html' %]
+
+<form method="post" action="controller.pl" id="form">
+ <table>
+ <tr>
+ <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
+ <td>[% L.input_tag('filter.partnumber', FORM.filter.partnumber, size=20) %]</td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
+ <td colspan="3">[% L.input_tag('filter.description', FORM.filter.description, size=20) %]</td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap>[% 'Partsgroup' | $T8 %]</th>
+ <td>[% L.input_tag('filter.partsgroup', FORM.filter.partsgroup, size=20) %]</td>
+ <th align="right" nowrap>[% 'Serial Number' | $T8 %]</th>
+ <td>[% L.input_tag('filter.serialnumber', FORM.filter.serialnumber, size=20) %]</td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap>[% 'Make' | $T8 %]</th>
+ <td>[% L.input_tag('filter.make', FORM.filter.make, size=20) %]</td>
+ <th align="right" nowrap>[% 'Model' | $T8 %]</th>
+ <td>[% L.input_tag('filter.model', FORM.filter.model, size=20) %]</td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap>[% 'Drawing' | $T8 %]</th>
+ <td>[% L.input_tag('filter.drawing', FORM.filter.drawing, size=20) %]</td>
+ <th align="right" nowrap>[% 'Microfiche' | $T8 %]</th>
+ <td>[% L.input_tag('filter.microfiche', FORM.filter.microfiche, size=20) %]</td>
+ </tr>
+
+ <tr>
+ <td></td>
+ <td colspan="3">
+ [% L.radio_button_tag('filter.itemstatus', value='active', label=LxERP.t8('Active'), checked=!FORM.filter.itemstatus||FORM.filter.itemstatus=='active') %]
+ [% L.radio_button_tag('filter.itemstatus', value='onhand', label=LxERP.t8('On Hand'), checked=FORM.filter.itemstatus=='onhand') %]
+ [% L.radio_button_tag('filter.itemstatus', value='short', label=LxERP.t8('Short'), checked=FORM.filter.itemstatus=='short') %]
+ [% L.radio_button_tag('filter.itemstatus', value='obsolete', label=LxERP.t8('Obsolete'), checked=FORM.filter.itemstatus=='obsolete') %]
+ [% L.radio_button_tag('filter.itemstatus', value='orphaned', label=LxERP.t8('Orphaned'), checked=FORM.filter.itemstatus=='orphaned') %]
+ </td>
+ </tr>
+ </table>
+
+ <hr size="1" noshade>
+
+ <table>
+ <tr>
+ <th class="listheading">[% 'Price group' | $T8 %]</th>
+ <th class="listheading">[% 'Preis' | $T8 %]</th>
+ <th class="listheading">[% 'Prozentual/Absolut' | $T8 %]</th>
+ </tr>
+
+ <tr>
+ <td>[% 'Sell Price' | $T8 %]</td>
+ <td>[% L.input_tag('filter.prices.sellprice.price_as_number', FORM.filter.prices.sellprice.price_as_number, size=11) %]</td>
+ <td align="center">
+ [% L.radio_button_tag("filter.prices.sellprice.type",
+ value="percent",
+ checked=!FORM.filter.prices.sellprice.type || FORM.filter.prices.sellprice.type == 'percent') %] /
+ [% L.radio_button_tag("filter.prices.sellprice.type",
+ value="absolut",
+ checked=FORM.filter.prices.sellprice.type == 'absolut') %]
+ </td>
+ </tr>
+
+ <tr>
+ <td>[% 'List Price' | $T8 %]</td>
+ <td>[% L.input_tag('filter.prices.listprice.price_as_number', FORM.filter.prices.listprice.price_as_number, size=11) %]</td>
+ <td align="center">
+ [% L.radio_button_tag("filter.prices.listprice.type",
+ value="percent",
+ checked=!FORM.filter.prices.listprice.type || FORM.filter.prices.listprice.type == 'percent') %] /
+ [% L.radio_button_tag("filter.prices.listprice.type",
+ value="absolut",
+ checked=FORM.filter.prices.listprice.type == 'absolut') %]
+ </td>
+ </tr>
+
+[%- FOREACH pg = SELF.pricegroups %]
+ <tr>
+ <td>[% pg.pricegroup | html %]</td>
+ <td>[% L.input_tag('filter.prices.' _ pg.id _ '.price_as_number', FORM.filter.prices.${pg.id}.price_as_number, size=11) %]</td>
+ <td align="center">
+ [% L.radio_button_tag("filter.prices." _ pg.id _ ".type",
+ value="percent",
+ checked=!FORM.filter.prices.${pg.id}.type || FORM.filter.prices.${pg.id}.type == 'percent') %] /
+ [% L.radio_button_tag("filter.prices." _ pg.id _ ".type",
+ value="absolut",
+ checked=FORM.filter.prices.${pg.id}.type == 'absolut') %]
+ </td>
+ </tr>
+[%- END %]
+
+ </table>
+</form>