X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FCase%2FForm%2FCaseView.tpl;h=783d68342cac2d967410e2bd3513e67e26974dd2;hb=66cae70584f43f4d98a9a08b686487f9a0353d00;hp=97be9a32556596ab5092b4c2b69bd76aff982e83;hpb=afed0de9c0305abb1c011d6e87fd5e7a1ddee543;p=civicrm-core.git diff --git a/templates/CRM/Case/Form/CaseView.tpl b/templates/CRM/Case/Form/CaseView.tpl index 97be9a3255..783d68342c 100644 --- a/templates/CRM/Case/Form/CaseView.tpl +++ b/templates/CRM/Case/Form/CaseView.tpl @@ -147,7 +147,7 @@ {if $hasAccessToAllCases}
-
{ts}Add new role{/ts}
+
{ts}Add new role{/ts}
{$form.role_type.label}
@@ -162,7 +162,7 @@
- +
@@ -184,63 +184,61 @@ CRM.$(function($) { buildCaseRoles(false); - }); - - function buildCaseRoles(filterSearch) { - if(filterSearch) { - oTable.fnDestroy(); - } - var count = 0; - var columns = ''; - var sourceUrl = {/literal}"{crmURL p='civicrm/ajax/caseroles' h=0 q='snippet=4&caseID='}{$caseID}"{literal}; - sourceUrl = sourceUrl + '&cid={/literal}{$contactID}{literal}'; - sourceUrl = sourceUrl + '&userID={/literal}{$userID}{literal}'; - - cj('#caseRoles-selector th').each( function( ) { - if ( cj(this).attr('id') != 'nosort' ) { - columns += '{"sClass": "' + cj(this).attr('class') +'"},'; - } - else { - columns += '{ "bSortable": false },'; + function buildCaseRoles(filterSearch) { + if(filterSearch) { + oTable.fnDestroy(); } - count++; - }); - - columns = columns.substring(0, columns.length - 1 ); - eval('columns =[' + columns + ']'); - - oTable = cj('#caseRoles-selector').dataTable({ - "bFilter" : false, - "bAutoWidth" : false, - "aaSorting" : [], - "aoColumns" : columns, - "bProcessing": true, - "bJQueryUI": true, - "asStripClasses" : [ "odd-row", "even-row" ], - "sPaginationType": "full_numbers", - "sDom" : '<"crm-datatable-pager-top"lfp>rt<"crm-datatable-pager-bottom"ip>', - "bServerSide": true, - "sAjaxSource": sourceUrl, - "iDisplayLength": 10, - "fnDrawCallback": function() { setCaseRolesSelectorClass(); }, - "fnServerData": function ( sSource, aoData, fnCallback ) { - cj.ajax({ - "dataType": 'json', - "type": "POST", - "url": sSource, - "data": aoData, - "success": fnCallback - }); - } - }); - } - - function setCaseRolesSelectorClass( ) { - cj("#caseRoles-selector td:last-child").each( function( ) { - cj(this).parent().addClass(cj(this).text() ); - }); - } + var count = 0; + var columns = ''; + var sourceUrl = {/literal}"{crmURL p='civicrm/ajax/caseroles' h=0 q='snippet=4&caseID='}{$caseID}"{literal}; + sourceUrl = sourceUrl + '&cid={/literal}{$contactID}{literal}'; + sourceUrl = sourceUrl + '&userID={/literal}{$userID}{literal}'; + + $('#caseRoles-selector-{/literal}{$caseID}{literal} th').each( function( ) { + if ( $(this).attr('id') != 'nosort' ) { + columns += '{"sClass": "' + $(this).attr('class') +'"},'; + } + else { + columns += '{ "bSortable": false },'; + } + count++; + }); + + columns = columns.substring(0, columns.length - 1 ); + eval('columns =[' + columns + ']'); + + oTable = $('#caseRoles-selector-{/literal}{$caseID}{literal}').dataTable({ + "bFilter" : false, + "bAutoWidth" : false, + "aaSorting" : [], + "aoColumns" : columns, + "bProcessing": true, + "bJQueryUI": true, + "asStripClasses" : [ "odd-row", "even-row" ], + "sPaginationType": "full_numbers", + "sDom" : '<"crm-datatable-pager-top"lfp>rt<"crm-datatable-pager-bottom"ip>', + "bServerSide": true, + "sAjaxSource": sourceUrl, + "iDisplayLength": 10, + "fnDrawCallback": function() { setCaseRolesSelectorClass(); }, + "fnServerData": function ( sSource, aoData, fnCallback ) { + $.ajax({ + "dataType": 'json', + "type": "POST", + "url": sSource, + "data": aoData, + "success": fnCallback + }); + } + }); + } + function setCaseRolesSelectorClass( ) { + $("#caseRoles-selector-{/literal}{$caseID}{literal} td:last-child").each( function( ) { + $(this).parent().addClass($(this).text() ); + }); + } + }); {/literal} @@ -258,7 +256,7 @@
{ts}Add client relationship{/ts}
-
{ts}Case Role{/ts} {ts}Name{/ts}
+
@@ -276,76 +274,75 @@ {literal} {/literal}
{if !empty($globalGroupInfo.id)}
- +
{ts 1=$globalGroupInfo.title}Add members to %1{/ts}
- +
-
{ts}Client Relationship{/ts} {ts}Name{/ts}
+
@@ -356,68 +353,66 @@ {literal} {/literal} @@ -440,7 +435,7 @@ {assign var="tagExits" value=1} {/if} - {foreach from=$tagsetInfo_case item=displayTagset} + {foreach from=$tagsetInfo.case item=displayTagset} {if $displayTagset.entityTagsArray}
  {$displayTagset.parentName}: @@ -469,7 +464,7 @@
{$form.case_tag.label}
{$form.case_tag.html}

-
{include file="CRM/common/Tag.tpl" tagsetType='case'}
+
{include file="CRM/common/Tagset.tpl" tagsetType='case'}

{$globalGroupInfo.title} {ts}Phone{/ts}