From: Bernd Bleßmann Date: Wed, 9 Sep 2015 13:23:13 +0000 (+0200) Subject: Auftrags-Controller: Test/Layout für 2. Zeile X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3c2409e02da807790e24a06412a478a5b0d605ad;p=kivitendo-erp.git Auftrags-Controller: Test/Layout für 2. Zeile --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index abb53f274..93015a77e 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -161,7 +161,7 @@ sub action_add_item { my $row_as_html = $self->p->render('order/tabs/_row', ITEM => $item); $self->js - ->append('#row_table_id tbody', $row_as_html) + ->append('#row_table_id', $row_as_html) ->val('#add_item_parts_id', '') ->val('#add_item_parts_id_name', '') ->val('#add_item_description', '') diff --git a/templates/webpages/order/tabs/_row.html b/templates/webpages/order/tabs/_row.html index 9e54c4083..30226ca85 100644 --- a/templates/webpages/order/tabs/_row.html +++ b/templates/webpages/order/tabs/_row.html @@ -3,13 +3,15 @@ [%- USE LxERP %] [%- USE L %] - + + + [% L.hidden_tag("order.orderitems[+].id", ITEM.id, id='item_' _ ITEM.id) %] [% L.hidden_tag("order.orderitems[].parts_id", ITEM.parts_id) %] - - [%- LxERP.t8('reorder item') %] + + [%- LxERP.t8('reorder item') %] [%- L.button_tag("delete_order_item_row(this)", @@ -58,3 +60,24 @@ + + + + + + + + + + + + + + + + +
hi1hi2hi3[%- ITEM.description %]
ho1ho2ho3[%- ITEM.longdescription %]
+ + + + diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html index ea9710ba4..a2aa462e2 100644 --- a/templates/webpages/order/tabs/basic_data.html +++ b/templates/webpages/order/tabs/basic_data.html @@ -136,11 +136,9 @@ - - [%- FOREACH item = SELF.order.items_sorted %] - [%- PROCESS order/tabs/_row.html ITEM=item %] - [%- END %] - + [%- FOREACH item = SELF.order.items_sorted %] + [%- PROCESS order/tabs/_row.html ITEM=item %] + [%- END %] @@ -183,7 +181,7 @@ -[% L.sortable_element('#row_table_id tbody') %] +[% L.sortable_element('#row_table_id') %]