diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-03-03 00:17:39 -0800 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-03-03 00:17:39 -0800 |
commit | 2ebc9a38a09bd310d9da750cf22afae92d9343d8 (patch) | |
tree | 9d35bf70c865b71ba040777f7d8950d5d909cd8a /src | |
parent | 37d41653f52a76b730f3dd05aa014a0ea7910007 (diff) | |
download | pfsense-2ebc9a38a09bd310d9da750cf22afae92d9343d8.zip pfsense-2ebc9a38a09bd310d9da750cf22afae92d9343d8.tar.gz |
HTML Compliance - Diagnostics / S.M.A.R.T. Status / Information & Tests
Remove unused/duplicate ID's; action, device, submit.
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/diag_smart.php | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/usr/local/www/diag_smart.php b/src/usr/local/www/diag_smart.php index 85ed8bd..03832d7 100644 --- a/src/usr/local/www/diag_smart.php +++ b/src/usr/local/www/diag_smart.php @@ -303,6 +303,8 @@ switch ($action) { 'View' ); + $btnview->setAttribute('id'); + $section = new Form_Section('Information'); $section->addInput(new Form_Input( @@ -310,7 +312,7 @@ switch ($action) { null, 'hidden', 'info' - )); + ))->setAttribute('id'); $group = new Form_Group('Info type'); @@ -361,7 +363,7 @@ switch ($action) { 'Device: /dev/', false, array_combine($devs, $devs) - )); + ))->setAttribute('id'); $section->addInput(new Form_StaticText( '', @@ -379,6 +381,8 @@ switch ($action) { 'Test' ); + $btntest->setAttribute('id'); + $section = new Form_Section('Perform self-tests'); $section->addInput(new Form_Input( @@ -386,7 +390,7 @@ switch ($action) { null, 'hidden', 'test' - )); + ))->setAttribute('id'); $group = new Form_Group('Test type'); @@ -430,7 +434,7 @@ switch ($action) { 'Device: /dev/', false, array_combine($devs, $devs) - )); + ))->setAttribute('id'); $section->addInput(new Form_StaticText( '', @@ -448,6 +452,8 @@ switch ($action) { 'View' ); + $btnview->setAttribute('id'); + $section = new Form_Section('View Logs'); $section->addInput(new Form_Input( @@ -455,7 +461,7 @@ switch ($action) { null, 'hidden', 'logs' - )); + ))->setAttribute('id'); $group = new Form_Group('Log type'); @@ -482,7 +488,7 @@ switch ($action) { 'Device: /dev/', false, array_combine($devs, $devs) - )); + ))->setAttribute('id'); $section->addInput(new Form_StaticText( '', @@ -498,7 +504,7 @@ switch ($action) { 'Abort' ); - $btnabort->removeClass('btn-primary')->addClass('btn-danger'); + $btnabort->removeClass('btn-primary')->addClass('btn-danger')->setAttribute('id'); $form = new Form(false); @@ -509,14 +515,14 @@ switch ($action) { null, 'hidden', 'abort' - )); + ))->setAttribute('id'); $section->addInput(new Form_Select( 'device', 'Device: /dev/', false, array_combine($devs, $devs) - )); + ))->setAttribute('id'); $section->addInput(new Form_StaticText( '', |