{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {* View Case Activities *}
{include file="CRM/common/formButtons.tpl" location="top" linkButtons=$actionLinks}
{if $revs} {strip} {foreach from=$result item=row} {/foreach}
{ts}Created By{/ts} {ts}Created On{/ts}  
{$row.name} {$row.date|crmDate} {if $row.id != $latestRevisionID}{ts}View{/ts}{else}{ts}View (Current Revision){/ts}{/if}
{/strip} {else} {if $report} {foreach from=$report.fields item=row name=report} {if $smarty.foreach.report.first AND ( $activityID OR $parentID OR $latestRevisionID )} {* Add a cell to first row with links to prior revision listing and Prompted by (parent) as appropriate *} {else} {/if} {/foreach} {* Display custom field data for the activity. *} {if $report.customGroups} {foreach from=$report.customGroups item=customGroup key=groupTitle name=custom} {foreach from=$customGroup item=customField name=fields} {/foreach} {/foreach} {/if}
{$row.label}{$row.value} {if $activityID} {ts}List all revisions{/ts}{if !$latestRevisionID}
{ts}(this is the current revision){/ts}{/if}
{/if} {if $latestRevisionID} {ts}View current revision{/ts}
{ts}(this is not the current revision){/ts}
{/if} {if $parentID} {ts}Prompted by{/ts}{/if}
{if $row.label eq 'Details'}{$row.value|crmStripAlternatives|nl2br|purify}{elseif $row.type eq 'Date'}{$row.value|crmDate}{else}{$row.value}{/if}
{$groupTitle}
{$customField.label} {$customField.value}
{/if} {/if}
{include file="CRM/common/formButtons.tpl" location="bottom" linkButtons=$actionLinks}
{include file="CRM/Case/Form/ActivityToCase.tpl"}