From: Pradeep Nayak Date: Mon, 10 Feb 2020 00:53:40 +0000 (+0000) Subject: Added conditional check so that it can be altered by hook X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=21058a88acaebfd8961bee31350284a8e5294f1a;p=civicrm-core.git Added conditional check so that it can be altered by hook --- diff --git a/templates/CRM/Case/Audit/Report.tpl b/templates/CRM/Case/Audit/Report.tpl index be43122c55..fb28c7034d 100644 --- a/templates/CRM/Case/Audit/Report.tpl +++ b/templates/CRM/Case/Audit/Report.tpl @@ -19,60 +19,64 @@

{$pageTitle}

{$reportDate}
-

{ts}Case Summary{/ts}

- +{if $case} +

{ts}Case Summary{/ts}

+
- - + + - - - - - + + + + + -
{ts}Client{/ts} {ts}Case Type{/ts}{ts}Status{/ts}{ts}Start Date{/ts}{ts}Status{/ts}{ts}Start Date{/ts} {ts}Case ID{/ts}
{$case.clientName}{$case.caseType}{$case.status}{$case.start_date}{$caseId}{$case.clientName}{$case.caseType}{$case.status}{$case.start_date}{$caseId}
-

{ts}Case Roles{/ts}

- +
+{/if} + +{if $caseRelationships} +

{ts}Case Roles{/ts}

+ - - + + {foreach from=$caseRelationships item=row key=relId} - - - - - - + + + + + + {/foreach} {foreach from=$caseRoles item=relName key=relTypeID} - {if $relTypeID neq 'client'} - - - - - - - {else} - - - - - - - {/if} - {/foreach} -
{ts}Case Role{/ts} {ts}Name{/ts}{ts}Phone{/ts}{ts}Email{/ts}{ts}Phone{/ts}{ts}Email{/ts}
{$row.relation}{$row.name}{$row.phone}{$row.email}
{$row.relation}{$row.name}{$row.phone}{$row.email}
{$relName}{ts}(not assigned){/ts}
{$relName.role}{$relName.sort_name}{$relName.phone}{$relName.email}
-
- + {if $relTypeID neq 'client'} + + {$relName} + {ts}(not assigned){/ts} + + + + {else} + + {$relName.role} + {$relName.sort_name} + {$relName.phone} + {$relName.email} + + {/if} + {/foreach} + +
+{/if} {if $otherRelationships} @@ -124,29 +128,26 @@ {/foreach} {/if} -

{ts}Case Activities{/ts}

-{foreach from=$activities item=activity key=key} -
- {foreach from=$activity item=field name=fieldloop} - - - {if $field.label eq 'Activity Type' or $field.label eq 'Status'} - - {elseif $field.label eq 'Details' or $field.label eq 'Subject'} - - {else} - - {/if} - - {/foreach} -
{$field.label|escape}{$field.value|escape}{$field.value}{$field.value|escape}
-
-{/foreach} +{if $activities} +

{ts}Case Activities{/ts}

+ {foreach from=$activities item=activity key=key} + + {foreach from=$activity item=field name=fieldloop} + + + {if $field.label eq 'Activity Type' or $field.label eq 'Status'} + + {elseif $field.label eq 'Details' or $field.label eq 'Subject'} + + {else} + + {/if} + + {/foreach} +
{$field.label|escape}{$field.value|escape}{$field.value}{$field.value|escape}
+
+ {/foreach} +{/if}
- - - - -