Add select2 to group lists
authorColeman Watts <coleman@civicrm.org>
Tue, 3 Jun 2014 21:41:01 +0000 (22:41 +0100)
committerColeman Watts <coleman@civicrm.org>
Tue, 3 Jun 2014 21:41:01 +0000 (22:41 +0100)
CRM/ACL/Form/EntityRole.php
CRM/Contact/Form/DedupeFind.php
CRM/Contact/Form/Task/AddToGroup.php
CRM/Contact/Form/Task/RemoveFromGroup.php

index 371217cb783531a046c2ef91463e668f024b2c8d..9e21e493341ca1de2a48e7dd407a35d6e8966f4c 100644 (file)
@@ -66,7 +66,7 @@ class CRM_ACL_Form_EntityRole extends CRM_Admin_Form {
 
     $label = ts('Assigned To');
     $group = array('' => ts('- select group -')) + CRM_Core_PseudoConstant::staticGroup(FALSE, 'Access');
-    $this->add('select', 'entity_id', $label, $group, TRUE);
+    $this->add('select', 'entity_id', $label, $group, TRUE, array('class' => 'crm-select2 huge'));
 
     $this->add('checkbox', 'is_active', ts('Enabled?'));
   }
index 1b6b242e8f46ba4c2b1d25d5b2155d76b3630f45..6fd1a9063fb06cba11f0c8ed486e1917d31e391c 100644 (file)
@@ -67,7 +67,7 @@ class CRM_Contact_Form_DedupeFind extends CRM_Admin_Form {
     $groupList[''] = ts('- All Contacts -');
     asort($groupList);
 
-    $this->add('select', 'group_id', ts('Select Group'), $groupList);
+    $this->add('select', 'group_id', ts('Select Group'), $groupList, FALSE, array('class' => 'crm-select2 huge'));
     $this->addButtons(array(
         array(
           'type' => 'next',
index e8e69aca61a6496ca7fb79b871b468ab3783d0d6..dac5896230349f6c849fb3e6988a22f042b78571 100644 (file)
@@ -127,7 +127,7 @@ class CRM_Contact_Form_Task_AddToGroup extends CRM_Contact_Form_Task {
     // add select for groups
     $group = array('' => ts('- select group -')) + CRM_Core_PseudoConstant::group();
 
-    $groupElement = $this->add('select', 'group_id', ts('Select Group'), $group);
+    $groupElement = $this->add('select', 'group_id', ts('Select Group'), $group, FALSE, array('class' => 'crm-select2 huge'));
 
     $this->_title = $group[$this->_id];
 
index 61bd59f77854cafcb23d576b4fa3e6f4378d09d1..a75b0918ca697528050ebc27bdfc8ee371e199c6 100644 (file)
@@ -50,7 +50,7 @@ class CRM_Contact_Form_Task_RemoveFromGroup extends CRM_Contact_Form_Task {
   function buildQuickForm() {
     // add select for groups
     $group = array('' => ts('- select group -')) + CRM_Core_PseudoConstant::group();
-    $groupElement = $this->add('select', 'group_id', ts('Select Group'), $group, TRUE);
+    $groupElement = $this->add('select', 'group_id', ts('Select Group'), $group, TRUE, array('class' => 'crm-select2 huge'));
 
     CRM_Utils_System::setTitle(ts('Remove Contacts from Group'));
     $this->addDefaultButtons(ts('Remove from Group'));