[%- USE T8 %]
-[% USE HTML %][% USE JavaScript %][% USE LxERP %]<body onload="on_load(); [% onload %]">
+[%- USE L %]
+[%- USE HTML %][%- USE JavaScript %][%- USE LxERP %]
+<body onload="on_load(); [%- onload %]">
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/part_selection.js"></script>
<th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
<td>
<input name="description" size="30" value="[% HTML.escape(description) %]">
- <input type="button" onclick="part_selection_window('partnumber', 'description', 'parts_id', 0, 'Form', 'no_services:click_button=update_button')" value="?">
+ <input type="button" onclick="part_selection_window('partnumber', 'description', 'parts_id', 0, 'Form', 'click_button=update_button')" value="?">
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Best Before' | $T8 %]</th>
<td>
- <input name="bestbefore" id="bestbefore" size="11" value="[% HTML.escape(bestbefore) %]" title="[% myconfig_dateformat %]">
- <input type="button" name="b_bestbefore" id="bestbefore_trigger" value="?">
+ [% L.date_tag('bestbefore', bestbefore) %]
</td>
</tr>
[% END %]
<input type="submit" class="submit" name="action" value="[% 'Stock' | $T8 %]">
[%- END %]
</p>
- </form>
-
- [% IF conf_show_best_before %]
- <script type="text/javascript">
- <!--
- Calendar.setup( {
- inputField : "bestbefore",
- ifFormat :"[% myconfig_jsc_dateformat %]",
- align : "BR",
- button : "bestbefore_trigger"
- });
- //-->
- </script>
- [% END %]
-
+ </form>
+
</body>
-</html>