Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / io / select_item.html
index f576486..c6330d2 100644 (file)
@@ -1,7 +1,8 @@
 [% USE LxERP %][% USE HTML %][% USE L %][% USE P %]
+[% SET COLS = 8 %]
 <h1>[% title %]</h1>
 
- <form method="post" action="[% HTML.escape(script) %]">
+ <form method="post" action="[% HTML.escape(script) %]" id="form">
 
   <table width="100%">
    <tr class="listheading">
       <th>&nbsp;</th>
     [%- END %]
     <th>[% LxERP.t8('Number') %]</th>
+    <th>[% LxERP.t8('Part Classification') %]</th>
     <th>[% LxERP.t8('Part Description') %]</th>
     [%- IF INSTANCE_CONF.get_show_longdescription_select_item %]
+      [% SET COLS = COLS + 1 %]
       <th>[% LxERP.t8('Long Description') %]</th>
     [%- END %]
     <th>[% LxERP.t8('Other Matches') %]</th>
     <th>[% LxERP.t8('Price') %]</th>
     [%- IF IS_PURCHASE %]
+      [% SET COLS = COLS + 1 %]
      <th>[% LxERP.t8('ROP') %]</th>
     [%- END %]
     <th>[% LxERP.t8('Qty') %]</th>
@@ -32,6 +36,7 @@
       <td><input name="select_item_id" class="radio" type="radio" value="[% HTML.escape(item.id) %]"[% IF loop.first %] checked[% END %]></td>
     [%- END %]
     <td>[% HTML.escape(item.partnumber) %]</td>
+    <td>[% HTML.escape(item.type_and_classific) %]</td>
     <td>[% HTML.escape(item.description) %]</td>
     [%- IF INSTANCE_CONF.get_show_longdescription_select_item %]
       <td>[% P.restricted_html(item.longdescription) %]</td>
    </tr>
    [%- END %]
 
-   <tr><td colspan="8"><hr size="3" noshade></td></tr>
+   <tr><td colspan="[% COLS %]"><hr size="3" noshade></td></tr>
   </table>
 
   [% L.hidden_tag('select_item_mode', MODE) %]
   [% L.hidden_tag('select_item_previous_form', PREVIOUS_FORM) %]
-  [% L.hidden_tag('nextsub', 'item_selected') %]
-
-  [% L.submit_tag('action', LxERP.t8('Continue')) %]
+  [% L.hidden_tag('action', 'item_selected') %]
  </form>
 
 [%- IF MYCONFIG.item_multiselect %]