Merge pull request #3805 from colemanw/groups
[civicrm-core.git] / templates / CRM / UF / Page / Group.tpl
index 0c3e2aea9be561d93fe3dbb5d0ea502d0059a3ab..bcdd8cc6d4709cfdfcce3d65d2fb389c906dc083 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -64,7 +64,8 @@
         </ul>
 
         {* handle enable/disable actions*}
-        {include file="CRM/common/enableDisable.tpl"}
+        {include file="CRM/common/enableDisableApi.tpl"}
+        {include file="CRM/common/crmeditable.tpl"}
         {include file="CRM/common/jsortable.tpl"}
         <div id="user-profiles">
            <div class="crm-content-block">
@@ -83,7 +84,7 @@
             <tbody>
             {foreach from=$rows item=row}
             {if !$row.is_reserved }
-              <tr id="UFGroup-{$row.id}"class="crm-entity {$row.class}{if NOT $row.is_active} disabled{/if}">
+              <tr id="UFGroup-{$row.id}" class="crm-entity {$row.class}{if NOT $row.is_active} disabled{/if}">
                 <td><span class="crmf-title crm-editable">{$row.title}</span></td>
                 <td>
                   {if $row.created_id && $row.created_by}
             <tbody>
             {foreach from=$rows item=row}
             {if $row.is_reserved}
-              <tr id="row_{$row.id}"class="{$row.class}{if NOT $row.is_active} disabled{/if}">
+              <tr id="UFGroup-{$row.id}" class="crm-entity {$row.class}{if NOT $row.is_active} disabled{/if}">
                 <td>{$row.title}</td>
                 <td>
                   {if $row.created_id && $row.created_by}
 
   </div> {* maincontainer*}
   <script type='text/javascript'>
-    var selectedTab = 'user-profiles';
-    {if $selectedChild}selectedTab = '{$selectedChild}';{/if}
-    {literal}
-      cj( function() {
-        var tabIndex = cj('#tab_' + selectedTab).prevAll().length
-        cj("#mainTabContainer").tabs( {selected: tabIndex} );
+      CRM.$(function($) {ldelim}
+        var selectedTab = '{if $selectedChild}{$selectedChild}{else}user-profiles{/if}';
+        var tabIndex = $('#tab_' + selectedTab).prevAll().length;
+        {literal}
+        $("#mainTabContainer").tabs( {active: tabIndex} );
       });
     {/literal}
   </script>
     {/if}
     {/if}
 {/if}
-{include file="CRM/common/crmeditable.tpl"}