Edit - Side Panel (Nested tab) Bootstrap 4.5 theme
Edit a form with nested tab, placed on the side
HIDE CODE
<?php $xcrud = Xcrud::get_instance(); $xcrud->table('orders'); $xcrud->default_tab('Order info'); //$xcrud->columns('Orderdate,requireddate,Status,comments,customernumber'); $orderdetails = $xcrud->nested_table('Order details','orderNumber','orderdetails','orderNumber'); // 2nd level $orderdetails->columns('productCode,quantityOrdered,priceEach'); $orderdetails->fields('productCode,quantityOrdered,priceEach'); $orderdetails->default_tab('Detail information'); $customers = $xcrud->nested_table('Customers','customerNumber','customers','customerNumber'); // 2nd level 2 $customers->columns('customerName,city,country'); $products = $orderdetails->nested_table('Products','productCode','products','productCode'); // 3rd level $products->default_tab('Product details'); $productLines = $products->nested_table('Product Lines','productLine','productlines','productLine'); // 4th level $xcrud->is_edit_side(true); echo $xcrud->render(); ?>
Orders
# | Orderdate | Requireddate | Shippeddate | Status | Comments | Customernumber | Action | |
---|---|---|---|---|---|---|---|---|
1 | 01.03.2003 00:00:00 | 12.03.2003 00:00:00 | 08.03.2003 00:00:00 | Completed | 2147483647 | 0 | View Edit Remove | |
2 | 25.03.2003 00:00:00 | 31.03.2003 00:00:00 | 30.03.2003 00:00:00 | Not Shipped | 2147483647 | 0 | View Edit Remove | |
3 | 04.04.2003 00:00:00 | 12.04.2003 00:00:00 | 07.04.2003 00:00:00 | Completed | vdd | 424 | 0 | View Edit Remove |
4 | 11.04.2003 00:00:00 | 18.04.2003 00:00:14 | 13.04.2003 00:00:00 | Shipped | 381 | 0 | View Edit Remove | |
5 | 16.04.2003 00:00:00 | 24.04.2003 00:00:00 | 17.04.2003 00:00:00 | Shipped | 148 | 0 | View Edit Remove | |
6 | 21.04.2003 00:00:00 | 29.04.2003 00:00:00 | 26.04.2003 00:00:00 | Shipped | Customer has worked with some of our vendors in | 216 | 0 | View Edit Remove |
7 | 28.04.2003 00:00:00 | 05.05.2003 00:00:00 | 02.05.2003 00:00:00 | Shipped | 382 | 0 | View Edit Remove | |
8 | 29.04.2003 00:00:00 | 08.05.2003 00:00:00 | 01.05.2003 00:00:00 | Shipped | 114 | 0 | View Edit Remove | |
9 | 07.05.2003 00:00:00 | 13.05.2003 00:00:00 | 13.05.2003 00:00:00 | Shipped | 353 | 0 | View Edit Remove | |
10 | 08.05.2003 00:00:00 | 16.05.2003 00:00:00 | 13.05.2003 00:00:00 | Shipped | 350 | 0 | View Edit Remove |