From 46691b527d6514102f1a460a4ff55576a67653c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 12 Aug 2015 16:04:33 +0200 Subject: [PATCH] Auftrags-Controller: zentrale Eingabezeile in eigene Template-Datei ausgelagert. --- .../webpages/order/tabs/_item_input.html | 24 +++++++++++++++++++ templates/webpages/order/tabs/basic_data.html | 24 +------------------ 2 files changed, 25 insertions(+), 23 deletions(-) create mode 100644 templates/webpages/order/tabs/_item_input.html diff --git a/templates/webpages/order/tabs/_item_input.html b/templates/webpages/order/tabs/_item_input.html new file mode 100644 index 000000000..9b44a38e2 --- /dev/null +++ b/templates/webpages/order/tabs/_item_input.html @@ -0,0 +1,24 @@ +[%- USE T8 %][%- USE HTML %][%- USE LxERP %][%- USE L %] + +
+ + + + + + + + + + + + + + + + + + + +
[%- 'Part' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %]
[% L.part_picker('add_item.parts_id', '', style='width: 300px') %][% L.input_tag('add_item.qty_as_number', '', size = 5, style='text-align:right') %][% L.input_tag('add_item.sellprice_as_number', '', size = 10, style='text-align:right') %][% L.input_tag('add_item.discount_as_percent', '', size = 5, style='text-align:right') %][% L.button_tag('add_item()', LxERP.t8('Add part')) %]
+
diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html index 83bd04859..905288bf6 100644 --- a/templates/webpages/order/tabs/basic_data.html +++ b/templates/webpages/order/tabs/basic_data.html @@ -102,29 +102,7 @@ -
- - - - - - - - - - - - - - - - - - - -
[%- 'Part' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %]
[% L.part_picker('add_item.parts_id', '', style='width: 300px') %][% L.input_tag('add_item.qty_as_number', '', size = 5, style='text-align:right') %][% L.input_tag('add_item.sellprice_as_number', '', size = 10, style='text-align:right') %][% L.input_tag('add_item.discount_as_percent', '', size = 5, style='text-align:right') %][% L.button_tag('add_item()', LxERP.t8('Add part')) %]
- -
+ [%- PROCESS order/tabs/_item_input.html %] -- 2.20.1