From: Bernd Bleßmann Date: Wed, 12 Aug 2015 14:04:33 +0000 (+0200) Subject: Auftrags-Controller: zentrale Eingabezeile in eigene Template-Datei ausgelagert. X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=46691b527d6514102f1a460a4ff55576a67653c3;p=kivitendo-erp.git Auftrags-Controller: zentrale Eingabezeile in eigene Template-Datei ausgelagert. --- 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 %]