{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {$pageTitle}

{$pageTitle}

{$reportDate}
{if $case}

{ts}Case Summary{/ts}

{ts}Client{/ts} {ts}Case Type{/ts} {ts}Status{/ts} {ts}Start Date{/ts} {ts}Case ID{/ts}
{$case.clientName} {$case.caseType} {$case.status} {$case.start_date} {$caseId}
{/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}
{$row.relation} {$row.name} {$row.phone} {$row.email}
{$relName} {ts}(not assigned){/ts}
{$relName.role} {$relName.sort_name} {$relName.phone} {$relName.email}

{/if} {if $otherRelationships} {foreach from=$otherRelationships item=row key=relId} {/foreach}
{ts}Client Relationship{/ts} {ts}Name{/ts} {ts}Phone{/ts} {ts}Email{/ts}
{$row.relation} {$row.name} {$row.phone} {$row.email}

{/if} {if $globalRelationships} {foreach from=$globalRelationships item=row key=relId} {/foreach}
{$globalGroupInfo.title} {ts}Phone{/ts} {ts}Email{/ts}
{$row.sort_name} {$row.phone} {$row.email}
{/if} {if $caseCustomFields} {foreach from=$caseCustomFields item=group}

{$group.title}

{foreach from=$group.values item=row} {/foreach}
{$row.label} {$row.value}
{/foreach} {/if} {if $activities}

{ts}Case Activities{/ts}

{foreach from=$activities item=activity key=key} {foreach from=$activity item=field} {* TODO: Using an unmunged field in the css class would have always been problematic? Since it sometimes has spaces. *} {if $field.name eq 'Activity Type' or $field.name eq 'Status'} {* TODO: See note in CRM/Case/XMLProcessor/Report.php: Subject is already escaped in the php file so that's why it's not escaped here, but should that be reversed? *} {elseif $field.name eq 'Details' or $field.name eq 'Subject'} {else} {/if} {/foreach}
{$field.label|escape}{$field.value|escape}{$field.value}{$field.value|escape}

{/foreach} {/if}