summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-03-09 14:30:05 -0500
committerjim-p <jimp@pfsense.org>2016-03-09 14:30:55 -0500
commit37676f4e5c40e5e2ea60a5de36608e956a76fb08 (patch)
tree2c777eab62447adf0f706f86879791a8b1c11dec /src/usr/local/www/diag_backup.php
parentea76852be1665670dbf01a2998aa588c2b65ab53 (diff)
downloadpfsense-37676f4e5c40e5e2ea60a5de36608e956a76fb08.zip
pfsense-37676f4e5c40e5e2ea60a5de36608e956a76fb08.tar.gz
Bring some consistency to the way most buttons are displayed (color, icons, etc). Ticket #5965
Still need to review Advanced buttons and Repeatable block buttons.
Diffstat (limited to 'src/usr/local/www/diag_backup.php')
-rw-r--r--src/usr/local/www/diag_backup.php24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/usr/local/www/diag_backup.php b/src/usr/local/www/diag_backup.php
index d499442..5b49019 100644
--- a/src/usr/local/www/diag_backup.php
+++ b/src/usr/local/www/diag_backup.php
@@ -664,8 +664,10 @@ $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');
+ 'Download configuration as XML',
+ null,
+ 'fa-download'
+))->setAttribute('id')->addClass('btn-primary');
$section->add($group);
$form->add($section);
@@ -710,8 +712,10 @@ $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')->setAttribute('id');
+ 'Restore Configuration',
+ null,
+ 'fa-undo'
+))->setHelp('The firewall will reboot after restoring the configuration.')->addClass('btn-danger restore')->setAttribute('id');
$section->add($group);
@@ -725,8 +729,10 @@ if (($config['installedpackages']['package'] != "") || (is_subsystem_dirty("pack
// 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')->setAttribute('id');
+ 'Reinstall Packages',
+ null,
+ 'fa-retweet'
+ ))->setHelp('Click this button to reinstall all system packages. This may take a while.')->addClass('btn-success')->setAttribute('id');
$section->add($group);
}
@@ -736,8 +742,10 @@ if (($config['installedpackages']['package'] != "") || (is_subsystem_dirty("pack
// 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')->setAttribute('id');
+ 'Clear Package Lock',
+ null,
+ 'fa-wrench'
+ ))->setHelp('Click this button to clear the package lock if a package fails to reinstall properly after an upgrade.')->addClass('btn-warning')->setAttribute('id');
$section->add($group);
}
OpenPOWER on IntegriCloud