$profiles = CRM_Core_BAO_UFGroup::getProfiles($types);
$this->add('select', 'defaultSearchProfileID', ts('Default Contact Search Profile'),
- array(
- '' => ts('- select -')) + $profiles
+ array('' => ts('- none -')) + $profiles, FALSE, array('class' => 'crm-select2 huge')
);
// Autocomplete for Contact Search (quick search etc.)
$this->assign('notificationStatusIds', $notificationStatusIds);
$this->_participantStatuses = CRM_Event_PseudoConstant::participantStatus(NULL, NULL, 'label');
- $this->add('select', 'status_id', ts('Participant Status'),
- array(
- '' => ts('- select -')) + $this->_participantStatuses,
- TRUE,
- $checkCancelledJs
- );
+ $this->addSelect('status_id', $checkCancelledJs, TRUE);
$this->addElement('checkbox', 'is_notify', ts('Send Notification'), NULL);
}
$attributes = CRM_Core_DAO::getAttribute('CRM_Grant_DAO_Grant');
- $grantType = CRM_Core_OptionGroup::values('grant_type');
- $this->add('select', 'grant_type_id', ts('Grant Type'),
- array(
- '' => ts('- select -')) + $grantType, TRUE,
- array('onChange' => "CRM.buildCustomData( 'Grant', this.value );")
- );
+ $this->addSelect('grant_type_id', array('onChange' => "CRM.buildCustomData( 'Grant', this.value );"), TRUE);
//need to assign custom data type and subtype to the template
$this->assign('customDataType', 'Grant');
$this->assign('customDataSubType', $this->_grantType);
$this->assign('entityID', $this->_id);
- $grantStatus = CRM_Core_OptionGroup::values('grant_status');
- $this->add('select', 'status_id', ts('Grant Status'),
- array(
- '' => ts('- select -')) + $grantStatus, TRUE
- );
+ $this->addSelect('status_id', array(), TRUE);
$this->addDate('application_received_date', ts('Application Received'), FALSE, array('formatType' => 'custom'));
$this->addDate('decision_date', ts('Grant Decision'), FALSE, array('formatType' => 'custom'));
<field>
<name>status_id</name>
<uniqueName>participant_status_id</uniqueName>
- <title>Participant Status Id</title>
+ <title>Participant Status</title>
<headerPattern>/(participant.)?(status)$/i</headerPattern>
<import>true</import>
<type>int unsigned</type>