CRM-13863 - Add livePage to contact case tab
authorColeman Watts <coleman@civicrm.org>
Wed, 19 Mar 2014 03:13:42 +0000 (23:13 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 19 Mar 2014 03:13:42 +0000 (23:13 -0400)
CRM/Contact/Page/View/Summary.php
templates/CRM/Case/Page/Tab.tpl

index dc47daaf228716b7d205143d4fff23de798bd858..337c8668e1aa7f1e881b45f4bb179b70174731ba 100644 (file)
@@ -328,8 +328,7 @@ class CRM_Contact_Page_View_Summary extends CRM_Contact_Page_View {
           'title' => $elem['title'],
           'weight' => $elem['weight'],
           'count' => CRM_Contact_BAO_Contact::getCountComponent($u, $this->_contactId),
-          // CiviCase UI not yet compatible with livePage popups
-          'class' => $u == 'case' ? '' : 'livePage',
+          'class' => 'livePage',
         );
         // make sure to get maximum weight, rest of tabs go after
         // FIXME: not very elegant again
index 9133b38c1d5e39991ac5b60cdbadf5cf0e1de537..f6ac9dd4bf091d9e11cdd367a32276ad29ef8f89 100644 (file)
     <div class="view-content">
     <div id="help">
          {ts 1=$displayName}This page lists all case records for %1.{/ts}
-         {if $permission EQ 'edit' and
-             call_user_func(array('CRM_Core_Permission','check'), 'access all cases and activities') and
-       $allowToAddNewCase}
-             {ts 1=$newCaseURL}Click <a href='%1'>Add Case</a> to add a case record for this contact.{/ts}{/if}
+         {if $permission EQ 'edit' and call_user_func(array('CRM_Core_Permission','check'), 'access all cases and activities') and $allowToAddNewCase}
+         {ts 1="href='$newCaseURL' class='action-item'"}Click <a %1>Add Case</a> to add a case record for this contact.{/ts}{/if}
     </div>
 
     {if $action eq 16 and $permission EQ 'edit' and