Update add-group select
authorColeman Watts <coleman@civicrm.org>
Sun, 16 Mar 2014 02:21:44 +0000 (22:21 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 16 Mar 2014 02:21:44 +0000 (22:21 -0400)
CRM/Contact/Form/GroupContact.php
templates/CRM/Contact/Form/GroupContact.tpl
templates/CRM/Contact/Page/View/GroupContact.tpl

index 7f0bdf0cd4001f3a2ff698bc32bfefed67515ed6..0ea4c902565c042789db27bf31cbdffc7f06785d 100644 (file)
@@ -102,7 +102,7 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form {
         $msg = ts('Add to a group');
       }
 
-      $this->add('select', 'group_id', $msg, $groupSelect, TRUE, array('class' => 'crm-select2'));
+      $this->add('select', 'group_id', '', $groupSelect, TRUE, array('class' => 'crm-select2 crm-action-menu', 'placeholder' => $msg));
 
       $this->addButtons(array(
           array(
index 87d3ae921d4e0ea8f9f6a4fef685561d3f5c365f..86daeca146accc6d22479fe330c4d8e7158c7399 100644 (file)
@@ -26,6 +26,6 @@
 {* this template is used for adding a contact to a group (from view context) *}
 
 <div class="form-item">
-    {$form.group_id.label} &nbsp; {$form.group_id.html} {$form.buttons.html}
+    {$form.group_id.html} {$form.buttons.html}
     {include file="CRM/Form/validate.tpl"}
 </div>
index 3b0221a759c1ba1261c3796483023db98f68fad5..3d94b8a325a6987bd1aef5b8733c306d88a2e785 100644 (file)
@@ -63,9 +63,9 @@
             <td>{$row.in_date|crmDate}</td>
             <td>
               {if $permission EQ 'edit'}
-                <a class="action-item" href="#Removed" title="{ts 1=$displayName 2=$row.title}Remove %1 from %2? (status in this group will be changed to 'Removed').{/ts}">
+                <a class="action-item crm-hover-button" href="#Removed" title="{ts 1=$displayName 2=$row.title}Remove %1 from %2? (status in this group will be changed to 'Removed').{/ts}">
                   {ts}Remove{/ts}</a>
-                <a class="action-item" href="#Deleted" title="{ts 1=$displayName 2=$row.title}Delete %1 from %2? (remove contact AND delete their record of having been in this group).{/ts}">
+                <a class="action-item crm-hover-button" href="#Deleted" title="{ts 1=$displayName 2=$row.title}Delete %1 from %2? (remove contact AND delete their record of having been in this group).{/ts}">
                   {ts}Delete{/ts}</a>
               {/if}
             </td>
             <td>{$row.pending_date|crmDate}</td>
             <td>
               {if $permission EQ 'edit'}
-                <a class="action-item" href="#Removed" title="{ts 1=$displayName 2=$row.title}Remove %1 from %2? (status in this group will be changed to 'Removed').{/ts}">
+                <a class="action-item crm-hover-button" href="#Removed" title="{ts 1=$displayName 2=$row.title}Remove %1 from %2? (status in this group will be changed to 'Removed').{/ts}">
                   {ts}Remove{/ts}</a>
-                <a class="action-item" href="#Deleted" title="{ts 1=$displayName 2=$row.title}Delete %1 from %2? (this group will no longer be listed under Pending Groups){/ts}">
+                <a class="action-item crm-hover-button" href="#Deleted" title="{ts 1=$displayName 2=$row.title}Delete %1 from %2? (this group will no longer be listed under Pending Groups){/ts}">
                   {ts}Delete{/ts}</a>
               {/if}
             </td>
             <td>{$row.date_added|crmDate}</td>
             <td>{$row.out_date|crmDate}</td>
             <td>{if $permission EQ 'edit'}
-                <a class="action-item" href="#Added" title="{ts 1=$displayName 2=$row.title}Add %1 back into %2?{/ts}">
+                <a class="action-item crm-hover-button" href="#Added" title="{ts 1=$displayName 2=$row.title}Add %1 back into %2?{/ts}">
                   {ts}Rejoin Group{/ts}</a>
-              <a class="action-item" href="#Deleted" title="{ts 1=$displayName 2=$row.title}Delete %1 from %2? (this group will no longer be listed under Past Groups).{/ts}">
+              <a class="action-item crm-hover-button" href="#Deleted" title="{ts 1=$displayName 2=$row.title}Delete %1 from %2? (this group will no longer be listed under Past Groups).{/ts}">
                 {ts}Delete{/ts}</a>{/if}
             </td>
           </tr>