diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-02-09 08:08:38 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-02-09 08:08:38 -0500 |
commit | 490e4909a03b684954045dd1c55ac60ef59516d5 (patch) | |
tree | 1df6a73b3c648cd30797827b4b348d1994a9755b /src/usr/local | |
parent | 424eda9cca011896f7af5911c0b46014b1d362a9 (diff) | |
parent | 1d80d71424b7d513fda0c16c753f223cdd11d2d9 (diff) | |
download | pfsense-490e4909a03b684954045dd1c55ac60ef59516d5.zip pfsense-490e4909a03b684954045dd1c55ac60ef59516d5.tar.gz |
Merge pull request #2608 from NOYB/HTML_Compliance_-_Diagnostics_/_Backup/Restore
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/diag_backup.php | 12 |
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); } |