projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4621 from atif-shaikh/CRM-15589
[civicrm-core.git]
/
CRM
/
Contribute
/
Form
/
ManagePremiums.php
diff --git
a/CRM/Contribute/Form/ManagePremiums.php
b/CRM/Contribute/Form/ManagePremiums.php
index 4c9c34bbdf75361b42d20322bf8eed2dc7d56393..3d9159993366cc061d3b206732a96382a64fa5f2 100644
(file)
--- a/
CRM/Contribute/Form/ManagePremiums.php
+++ b/
CRM/Contribute/Form/ManagePremiums.php
@@
-40,7
+40,7
@@
class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
/**
class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
/**
- *
Function to
pre process the form
+ * pre process the form
*
* @access public
*
*
* @access public
*
@@
-51,7
+51,7
@@
class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
}
/**
}
/**
- *
This function sets the
default values for the form. Manage Premiums that in edit/view mode
+ *
Set
default values for the form. Manage Premiums that in edit/view mode
* the default values are retrieved from the database
*
* @access public
* the default values are retrieved from the database
*
* @access public
@@
-87,7
+87,7
@@
class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
}
/**
}
/**
- *
Function to build the form
+ *
Build the form object
*
* @return void
* @access public
*
* @return void
* @access public
@@
-189,6
+189,18
@@
class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
$this->addFormRule(array('CRM_Contribute_Form_ManagePremiums', 'formRule'));
$this->addFormRule(array('CRM_Contribute_Form_ManagePremiums', 'formRule'));
+ $this->addButtons(array(
+ array(
+ 'type' => 'upload',
+ 'name' => ts('Save'),
+ 'isDefault' => TRUE,
+ ),
+ array(
+ 'type' => 'cancel',
+ 'name' => ts('Cancel'),
+ ),
+ )
+ );
$this->assign('productId', $this->_id);
}
$this->assign('productId', $this->_id);
}
@@
-260,7
+272,7
@@
class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
}
/**
}
/**
- *
Function to process the form
+ *
Process the form submission
*
* @access public
*
*
* @access public
*