Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / part / _multi_items_result.html
diff --git a/templates/webpages/part/_multi_items_result.html b/templates/webpages/part/_multi_items_result.html
new file mode 100644 (file)
index 0000000..dc12aca
--- /dev/null
@@ -0,0 +1,33 @@
+[%- USE T8 %][%- USE HTML %][%- USE L %][%- USE LxERP %][% USE P %]
+
+<table id="multi_items">
+    <tr class="listheading">
+      <td>[% 'for all' | $T8 %]
+      <td>[% L.input_tag("multi_items.all_qty", '', size = 5, class='numeric') %]</td>
+    </tr>
+    <tr>
+      <td colspan="6"><hr></td>
+    </tr>
+    <tr>
+      <th></th>
+      <th>[% 'Qty'        | $T8 %]</th>
+      <th>[% 'Unit'       | $T8 %]</th>
+      <th>[% 'Article'    | $T8 %]</th>
+      <th>[% 'Sellprice'  | $T8 %]</th>
+      <th>[% 'Partsgroup' | $T8 %]</th>
+    </tr>
+  [%- FOREACH item = multi_items %]
+    <tr class="listrow">
+      <td></td>
+      <td>
+        [% L.hidden_tag("add_items[+].parts_id", item.id) %]
+        [% L.input_tag("add_items[].qty_as_number", '', size = 5,
+                       class = 'multi_items_qty numeric') %]
+      </td>
+      <td>[% HTML.escape(item.unit) %]</td>
+      <td>[% item.presenter.part %] [% HTML.escape(item.description) %]</td>
+      <td class="numeric">[% HTML.escape(item.sellprice_as_number) %]</td>
+      <td class="numeric">[% HTML.escape(item.partsgroup.partsgroup) %]</td>
+    </tr>
+  [%- END %]
+</table>