[%- USE T8 %]
[%- USE HTML %]
-[% USE JavaScript %]<body onload="on_load();">
+[%- USE L %]
+[%- USE JavaScript %][%- USE P -%]
+<h1>[% title %]</h1>
- <script type="text/javascript" src="js/common.js"></script>
- <script type="text/javascript" src="js/part_selection.js"></script>
<script type="text/javascript">
<!--
warehouses = new Array();
control.options[bin_index].selected = true;
}
- function on_load() {
+ $(function() {
warehouse_selected(0, 0);
document.Form.partnumber.focus();
- }
+ });
-->
</script>
- <form name="Form" method="post" action="wh.pl">
-
- <input type="hidden" name="nextsub" value="[% HTML.escape(nextsub) %]">
+ <form name="Form" method="post" action="wh.pl" id="form">
[% IF saved_message %]
<p>[% saved_message %]</p>
[% END %]
- <div class="listtop">[% title %]</div>
-
<p>
[% 'If you enter values for the part number and / or part description then only those bins containing parts whose part number or part description match your input will be shown.' | $T8 %]
</p>
</tr>
<tr>
- <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
- <td>
- <input type="hidden" name="parts_id" id="parts_id">
- <input name="partnumber" id="partnumber" size="30">
- </td>
- </tr>
-
- <tr>
- <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
+ <th align="right" nowrap>[% 'Part' | $T8 %]</th>
<td>
- <input name="description" size="30">
- <input type="button" onclick="part_selection_window('partnumber', 'description', 'parts_id', 0, 'Form', 'no_services:')" value="?">
+ [% P.part_picker("part_id", '', size="30", part_type="part,assembly") %]
</td>
</tr>
<td><input name="chargenumber" size="30"></td>
</tr>
- [% IF conf_show_best_before %]
+ [% IF INSTANCE_CONF.get_show_bestbefore %]
<tr>
<th align="right" nowrap>[% 'Best Before' | $T8 %]</th>
<td>
- <input name="bestbefore" id="bestbefore" size="11" title="[% myconfig_dateformat %]">
- <input type="button" name="b_bestbefore" id="bestbefore_trigger" value="?">
+ [% L.date_tag('bestbefore') %]
</td>
</tr>
[% END %]
</tr>
</table>
</p>
-
- <p>
- <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
- </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 %]
-
-</body>
-</html>