{* +--------------------------------------------------------------------+ | CiviCRM version 4.5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* View Case Activities *} {* Uses inline styles since we have not figured out yet how to include our normal .css files. *}
{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}View Prior Revision{else}View Current Revision{/if}
{/strip} {else} {if $report} {if $caseID}
{/if} {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}{elseif $row.type eq 'Date'}{$row.value|crmDate}{else}{$row.value}{/if}
{$groupTitle}
{$customField.label} {$customField.value}
{if $caseID} {/if} {else}
{ts}This activity might not be attached to any case. Please investigate.{/ts}
{/if} {/if}