summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-02-08 23:53:25 -0800
committerNOYB <Al_Stu@Frontier.com>2016-02-08 23:53:25 -0800
commit1d80d71424b7d513fda0c16c753f223cdd11d2d9 (patch)
treebccf067348a361983e1236e4c03ad8ea1ab313a7 /src/usr/local/www/diag_backup.php
parent56ba82402a667f52a7cbcdab4c91cca33885301e (diff)
downloadpfsense-1d80d71424b7d513fda0c16c753f223cdd11d2d9.zip
pfsense-1d80d71424b7d513fda0c16c753f223cdd11d2d9.tar.gz
HTML Compliance - Diagnostics / Backup/Restore
Duplicate ID Submit. Suppressing unused ID Submit attributes.
Diffstat (limited to 'src/usr/local/www/diag_backup.php')
-rw-r--r--src/usr/local/www/diag_backup.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/usr/local/www/diag_backup.php b/src/usr/local/www/diag_backup.php
index 242551c..3a06df3 100644
--- a/src/usr/local/www/diag_backup.php
+++ b/src/usr/local/www/diag_backup.php
@@ -661,10 +661,11 @@ $section->addInput(new Form_Input(
));
$group = new Form_Group('');
+// Note: ID attribute of each element created is to be unique. Not being used, suppressing it.
$group->add(new Form_Button(
'Submit',
'Download configuration as XML'
-));
+))->setAttribute('id');
$section->add($group);
$form->add($section);
@@ -706,10 +707,11 @@ $section->addInput(new Form_Input(
));
$group = new Form_Group('');
+// Note: ID attribute of each element created is to be unique. Not being used, suppressing it.
$group->add(new Form_Button(
'Submit',
'Restore Configuration'
-))->setHelp('The firewall will reboot after restoring the configuration.')->removeClass('btn-primary')->addClass('btn-danger restore');
+))->setHelp('The firewall will reboot after restoring the configuration.')->removeClass('btn-primary')->addClass('btn-danger restore')->setAttribute('id');
$section->add($group);
@@ -720,20 +722,22 @@ if (($config['installedpackages']['package'] != "") || (is_subsystem_dirty("pack
if ($config['installedpackages']['package'] != "") {
$group = new Form_Group('');
+ // Note: ID attribute of each element created is to be unique. Not being used, suppressing it.
$group->add(new Form_Button(
'Submit',
'Reinstall Packages'
- ))->setHelp('Click this button to reinstall all system packages. This may take a while.')->removeClass('btn-primary')->addClass('btn-success');
+ ))->setHelp('Click this button to reinstall all system packages. This may take a while.')->removeClass('btn-primary')->addClass('btn-success')->setAttribute('id');
$section->add($group);
}
if (is_subsystem_dirty("packagelock")) {
$group = new Form_Group('');
+ // Note: ID attribute of each element created is to be unique. Not being used, suppressing it.
$group->add(new Form_Button(
'Submit',
'Clear Package Lock'
- ))->setHelp('Click this button to clear the package lock if a package fails to reinstall properly after an upgrade.')->removeClass('btn-primary')->addClass('btn-warning');
+ ))->setHelp('Click this button to clear the package lock if a package fails to reinstall properly after an upgrade.')->removeClass('btn-primary')->addClass('btn-warning')->setAttribute('id');
$section->add($group);
}
OpenPOWER on IntegriCloud