diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-03-03 00:17:39 -0800 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-03-03 08:15:13 -0500 |
commit | 4d3a100558ce505f52864c385a54411e25d54194 (patch) | |
tree | 0e07be7486463a136a88f8ea72ab42e84bc36d83 /src/usr/local/www/diag_smart.php | |
parent | b0fc4b281ccf51473dabb4c0e048a94837ab966d (diff) | |
download | pfsense-4d3a100558ce505f52864c385a54411e25d54194.zip pfsense-4d3a100558ce505f52864c385a54411e25d54194.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/usr/local/www/diag_smart.php')
-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( '', |