1 [%- USE T8 %][%- USE HTML %][%- USE LxERP %][%- USE L %][%- USE P %]
 
   4   <table id="input_row_table_id">
 
   6       <tr class="listheading">
 
   7         <th class="listheading" nowrap >[%- '+'            | $T8 %] </th>
 
   8         <th class="listheading" nowrap >[%- 'position'     | $T8 %] </th>
 
   9         <th class="listheading" nowrap >[%- 'Part'         | $T8 %] </th>
 
  10         <th class="listheading" nowrap >[%- 'Description'  | $T8 %] </th>
 
  11         <th class="listheading" nowrap width="5" >[%- 'Qty'          | $T8 %] </th>
 
  16       <tr valign="top" class="listrow">
 
  17         <td class="tooltipster-html" title="[%- 'Create a new part' | $T8 -%]">
 
  18           [% SET type_options = [[ 'part', LxERP.t8('Part') ], [ 'assembly', LxERP.t8('Assembly') ]] %]
 
  19           [%- IF INSTANCE_CONF.get_feature_experimental_assortment %]
 
  20             [%- type_options.push([ 'assortment', LxERP.t8('Assortment')]) %]
 
  22           [% L.select_tag('add_item.create_part_type', type_options) %]
 
  23           [% L.button_tag('kivi.DeliveryOrder.create_part()', LxERP.t8('+')) %]
 
  25         <td>[% L.input_tag('add_item.position', '', size = 5, class="add_item_input numeric") %]</td>
 
  27           [%- SET PARAM_KEY = SELF.type_data.properties('is_customer') ? 'with_customer_partnumber' : 'with_makemodel' -%]
 
  28           [%- SET PARAM_VAL = SELF.search_cvpartnumber -%]
 
  29           [% P.part.picker('add_item.parts_id', SELF.created_part, style='width: 300px', class="add_item_input",
 
  32                             action={set_multi_items='kivi.DeliveryOrder.add_multi_items'},
 
  33                             classification_id=SELF.part_picker_classification_ids.as_list.join(','),
 
  34                             $PARAM_KEY=PARAM_VAL) %]</td>
 
  35         <td>[% L.input_tag('add_item.description', SELF.created_part.description, class="add_item_input") %]</td>
 
  37           [% L.input_tag('add_item.qty_as_number', '', size = 5, class="add_item_input numeric") %]
 
  38           [% L.hidden_tag('add_item.unit', SELF.created_part.unit, class="add_item_input") %]
 
  40         <td>[% L.button_tag('kivi.DeliveryOrder.add_item()', LxERP.t8('Add part')) %]</td>