Project

General

Profile

« Previous | Next » 

Revision f84e2105

Added by Jim Pingle over 9 years ago

Add the ability for packages to control their button icon and class. Ticket #5965

View differences:

src/usr/local/www/pkg_edit.php
630 630
	$savehelp = $pkg['savehelp'];
631 631
}
632 632

  
633
$saveicon = "fa-save";
634
if ($pkg['saveicon'] != "") {
635
	$saveicon = $pkg['saveicon'];
636
}
637

  
638
$savebtnclass = "btn-primary";
639
if ($pkg['savebtnclass'] != "") {
640
	$savebtnclass = $pkg['savebtnclass'];
641
}
642

  
633 643
$grouping = false; // Indicates the elements we are composing are part of a combined group
634 644

  
635 645
$savebutton = new Form_Button(
636 646
	'submit',
637
	$savevalue
647
	$savevalue,
648
	null,
649
	$saveicon
638 650
);
651
$savebutton->addClass($savebtnclass);
639 652

  
640 653
if ($savehelp) {
641 654
	$savebutton->setHelp($savehelp);

Also available in: Unified diff