Clean-up in ui_list codes.
[fa-stable.git] / manufacturing / manage / bom_edit.php
index 673a54329efb710f0b3e7aeb97c50b548e1395a2..f3ace9fd401900b23818f26dfe72fa8c06c22116 100644 (file)
@@ -215,13 +215,15 @@ if ($Mode == 'RESET')
 
 start_form(false, true);
 
-echo "<center>" . _("Select a manufacturable item:") . "&nbsp;";
-stock_bom_items_list('stock_id', null, false, true);
-echo "</center><br>";
+start_form(false, true);
+start_table("class='tablestyle_noborder'");
+stock_manufactured_items_list_row(_("Select a manufacturable item:"), 'stock_id', null, false, true);
+if (list_updated('stock_id'))
+       $Ajax->activate('_page_body');
+end_table();
+br();
 
 end_form();
-if (isset($_POST['_stock_id_update']))
-       $Ajax->activate('_page_body');
 //--------------------------------------------------------------------------------------------------
 
 if (get_post('stock_id') != '')