Edit - Modal (Nested Tab)

Edit through a Modal Form with nested tab

HIDE CODE
<?php  
	$xcrud = Xcrud::get_instance();
    $xcrud->table('orders');
    $xcrud->default_tab('Order info');
	$xcrud->columns('orderDate,requiredDate,status,comments,customerNumber');
	
	$xcrud->fields_arrange('orderDate,requiredDate,shippedDate','Dates',true); 
	$xcrud->fields_arrange('status,customerNumber','Customer',true); 
	$xcrud->fields_arrange('comments','Other Info',true); 
	   
    $orderdetails = $xcrud->nested_table('Order details','orderNumber','orderdetails','orderNumber'); // 2nd level
    $orderdetails->columns('productCode,quantityOrdered,priceEach');
	$orderdetails->fields_arrange('productCode','Product',true);
	$orderdetails->fields_arrange('quantityOrdered,priceEach','Quantity',true);
	
    $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');
	$products->is_edit_modal(true);   
    $productLines = $products->nested_table('Product Lines','productLine','productlines','productLine'); // 4th level    
    $xcrud->is_edit_modal(true);	
    echo $xcrud->render();
?>

Orders

#OrderdateRequireddateStatusCommentsCustomernumber
Actions
106.11.2003 00:00:0014.11.2003 00:00:00Shipped324 View Edit Remove
206.11.2003 00:00:0015.11.2003 00:00:00Shipped386 View Edit Remove
308.11.2003 00:00:0016.11.2003 00:00:00ShippedCustom shipping instructions sent to warehouse242 View Edit Remove
412.11.2003 00:00:0019.11.2003 00:00:00Shipped167 View Edit Remove
512.11.2003 00:00:0021.11.2003 00:00:00Shipped124 View Edit Remove
613.11.2003 00:00:0022.11.2003 00:00:00ShippedWe need to keep in close contact with their…339 View Edit Remove
714.11.2003 00:00:0022.11.2003 00:00:00Shipped484 View Edit Remove
814.11.2003 00:00:0021.11.2003 00:00:00Shipped320 View Edit Remove
914.11.2003 00:00:0020.11.2003 00:00:00Shipped888 They want to reevaluate their terms agreement…489 View Edit Remove
1015.11.2003 00:00:0024.11.2003 00:00:00Shipped211 View Edit Remove
Search