diff options
author | jim-p <jimp@pfsense.org> | 2016-03-10 09:19:33 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-03-10 09:43:54 -0500 |
commit | f84e21056e51a02926f35dd373725c8f79dbf51f (patch) | |
tree | a2e8b110d1741dd1bd35e140d2bd93f446b1ef7a /src | |
parent | 624376f6da9a3ededa9e73d12f61429317b6d507 (diff) | |
download | pfsense-f84e21056e51a02926f35dd373725c8f79dbf51f.zip pfsense-f84e21056e51a02926f35dd373725c8f79dbf51f.tar.gz |
Add the ability for packages to control their button icon and class. Ticket #5965
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index 6d0b033..eacd004 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -630,12 +630,25 @@ if ($pkg['savehelp'] != "") { $savehelp = $pkg['savehelp']; } +$saveicon = "fa-save"; +if ($pkg['saveicon'] != "") { + $saveicon = $pkg['saveicon']; +} + +$savebtnclass = "btn-primary"; +if ($pkg['savebtnclass'] != "") { + $savebtnclass = $pkg['savebtnclass']; +} + $grouping = false; // Indicates the elements we are composing are part of a combined group $savebutton = new Form_Button( 'submit', - $savevalue + $savevalue, + null, + $saveicon ); +$savebutton->addClass($savebtnclass); if ($savehelp) { $savebutton->setHelp($savehelp); |