epic-ts
[kivitendo-erp.git] / templates / webpages / generic / select_part.html
index 324c473..300bf06 100644 (file)
@@ -1,6 +1,5 @@
 [%- USE T8 %]
-[% USE HTML %]<body [% IF onload %]onload="[% onload %]"[% END %]>
-
+[%- USE HTML %]
  <form method="post" action="[% HTML.escape(script) %]">
 
   <input type="hidden" name="nextsub" value="[% HTML.escape(nextsub) %]">
@@ -10,7 +9,7 @@
   <input type="hidden" name="remap_parts_id" value="[% HTML.escape(remap_parts_id) %]">
   <input type="hidden" name="remap_partnumber" value="[% HTML.escape(remap_partnumber) %]">
 
-  <div class="listtop">[% 'Select a part or assembly' | $T8 %]</div>
+  <h1>[% 'Select a part or assembly' | $T8 %]</h1>
 
   <p>
    <table>
@@ -22,7 +21,7 @@
      <th class="listheading">[% 'Charge number' | $T8 %]</th>
      [% END %]
      [% IF has_bestbefore %]
-     [% IF conf_show_best_before %]
+     [% IF INSTANCE_CONF.get_show_bestbefore %]
      <th class="listheading">[% 'Best Before' | $T8 %]</th>
      [% END %]
      [% END %]
@@ -40,6 +39,8 @@
      <td>
       <input type="hidden" name="new_id_[% loop.count %]" value="[% HTML.escape(part.id) %]">
       <input type="hidden" name="new_number_[% loop.count %]" value="[% HTML.escape(part.number) %]">
+      <input type="hidden" name="new_warehouse_id_[% loop.count %]" value="[% HTML.escape(part.warehouse_id) %]">
+      <input type="hidden" name="new_bin_id_[% loop.count %]" value="[% HTML.escape(part.bin_id) %]">
       [% HTML.escape(part.number) %]
      </td>
 
@@ -56,7 +57,7 @@
      </td>
      [% END %]
      [% IF has_bestbefore %]
-     [% IF conf_show_best_before %]
+     [% IF INSTANCE_CONF.get_show_bestbefore %]
      <td>
       <input type="hidden" name="new_bestbefore_id_[% loop.count %]" value="[% HTML.escape(part.bestbefore_id) %]">
       <input type="hidden" name="new_bestbefore_[% loop.count %]" value="[% HTML.escape(part.bestbefore) %]">
@@ -81,5 +82,3 @@
 
  </form>
 
-</body>
-</html>