From d254b99e18e5a4924510c26f7dbcba90aea1e53e Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Mon, 9 Nov 2015 15:33:52 -0500 Subject: Fixed #5403 --- src/usr/local/www/diag_smart.php | 40 +++++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/src/usr/local/www/diag_smart.php b/src/usr/local/www/diag_smart.php index a2bd287..cccbdb7 100644 --- a/src/usr/local/www/diag_smart.php +++ b/src/usr/local/www/diag_smart.php @@ -289,10 +289,12 @@ switch ($action) { // Information $devs = get_smart_drive_list(); - $form = new Form(new Form_Button( + $form = new Form(false); + + $btnview = new Form_Button( 'submit', 'View' - )); + ); $section = new Form_Section('Information'); @@ -354,14 +356,21 @@ switch ($action) { array_combine($devs, $devs) )); + $section->addInput(new Form_StaticText( + '', + $btnview + )); + $form->add($section); print($form); // Tests - $form = new Form(new Form_Button( + $form = new Form(false); + + $btntest = new Form_Button( 'submit', 'Test' - )); + ); $section = new Form_Section('Perform self-tests'); @@ -416,14 +425,21 @@ switch ($action) { array_combine($devs, $devs) )); + $section->addInput(new Form_StaticText( + '', + $btntest + )); + $form->add($section); print($form); // Logs - $form = new Form(new Form_Button( + $form = new Form(false); + + $btnview = new Form_Button( 'submit', 'View' - )); + ); $section = new Form_Section('View logs'); @@ -461,6 +477,11 @@ switch ($action) { array_combine($devs, $devs) )); + $section->addInput(new Form_StaticText( + '', + $btnview + )); + $form->add($section); print($form); @@ -472,7 +493,7 @@ switch ($action) { $btnabort->removeClass('btn-primary')->addClass('btn-danger'); - $form = new Form($btnabort); + $form = new Form(false); $section = new Form_Section('Abort'); @@ -490,6 +511,11 @@ switch ($action) { array_combine($devs, $devs) )); + $section->addInput(new Form_StaticText( + '', + $btnabort + )); + $form->add($section); print($form); -- cgit v1.1