Auftrags-Controller: Test/Layout für 2. Zeile
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 9 Sep 2015 13:23:13 +0000 (15:23 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Mon, 16 Nov 2015 15:15:57 +0000 (16:15 +0100)
SL/Controller/Order.pm
templates/webpages/order/tabs/_row.html
templates/webpages/order/tabs/basic_data.html

index abb53f2..93015a7 100644 (file)
@@ -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', '')
index 9e54c40..30226ca 100644 (file)
@@ -3,13 +3,15 @@
 [%- USE LxERP %]
 [%- USE L %]
 
-<tr valign="top" class="listrow">
+<tbody>
+
+<tr class="listrow0">
   <td style='display:none'>
     [% L.hidden_tag("order.orderitems[+].id", ITEM.id, id='item_' _ ITEM.id) %]
     [% L.hidden_tag("order.orderitems[].parts_id", ITEM.parts_id) %]
   </td>
-  <td align="center" class="dragdrop">
-    <img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]">
+  <td align="center">
+    <img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"  class="dragdrop">
   </td>
   <td align="center">
     [%- L.button_tag("delete_order_item_row(this)",
   </td>
 
 </tr>
+
+<tr class="listrow1">
+  <td colspan="100%">
+    <table>
+      <tr class="listrow1">
+        <td>hi1</td>
+        <td>hi2</td>
+        <td>hi3</td>
+        <td>[%- ITEM.description %]</td>
+      </tr>
+      <tr class="listrow1">
+        <td>ho1</td>
+        <td>ho2</td>
+        <td>ho3</td>
+        <td>[%- ITEM.longdescription %]</td>
+      </tr>
+    </table>
+  </td>
+</tr>
+
+</tbody>
index ea9710b..a2aa462 100644 (file)
               </tr>
             </thead>
 
-            <tbody>
-              [%- FOREACH item = SELF.order.items_sorted %]
-                [%- PROCESS order/tabs/_row.html ITEM=item %]
-              [%- END %]
-            </tbody>
+            [%- FOREACH item = SELF.order.items_sorted %]
+              [%- PROCESS order/tabs/_row.html ITEM=item %]
+            [%- END %]
 
           </table>
         </div>
 </div>
 
 
-[% L.sortable_element('#row_table_id tbody') %]
+[% L.sortable_element('#row_table_id') %]
 
 <script type='text/javascript'>
 function reload_cv_dependend_selections() {