From 3c2409e02da807790e24a06412a478a5b0d605ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 9 Sep 2015 15:23:13 +0200 Subject: [PATCH] =?utf8?q?Auftrags-Controller:=20Test/Layout=20f=C3=BCr=20?= =?utf8?q?2.=20Zeile?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Order.pm | 2 +- templates/webpages/order/tabs/_row.html | 29 +++++++++++++++++-- templates/webpages/order/tabs/basic_data.html | 10 +++---- 3 files changed, 31 insertions(+), 10 deletions(-) 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') %]