2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
26 {* View Case Activities *}
27 <div class="crm-block crm-content-block crm-case-activity-view-block">
30 <table class="crm-info-panel">
31 <tr class="columnheader">
32 <th>{ts}Created By{/ts}</th>
33 <th>{ts}Created On{/ts}</th>
36 {foreach from=$result item=row}
37 <tr {if $row.id EQ $latestRevisionID}style="font-weight: bold;"{/if}>
38 <td class="crm-case-activityview-form-block-name">{$row.name}</td>
39 <td class="crm-case-activityview-form-block-date">{$row.date|crmDate}</td>
40 <td class="crm-case-activityview-form-block-{$row.id}"><a class="open-inline-noreturn" href="{crmURL p='civicrm/case/activity/view' h=0 q="cid=$contactID&aid="}{$row.id}" title="{ts}View this revision of the activity record.{/ts}">{if $row.id != $latestRevisionID}View Prior Revision{else}View Current Revision{/if}</a></td>
47 <table class="crm-info-panel" id="crm-activity-view-table">
48 {foreach from=$report.fields item=row name=report}
49 <tr class="crm-case-activity-view-{$row.label}">
50 <td class="label">{$row.label}</td>
51 {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 *}
53 <td style="padding-right: 50px; text-align: right; font-size: .9em;">
54 {if $activityID}<a class="open-inline-noreturn" href="{crmURL p='civicrm/case/activity/view' h=0 q="cid=$contactID&aid=$activityID&revs=1"}">» {ts}List all revisions{/ts}</a>{if !$latestRevisionID}<br />{ts}(this is the current revision){/ts}{/if}<br />{/if}
55 {if $latestRevisionID}<a class="open-inline-noreturn" href="{crmURL p='civicrm/case/activity/view' h=0 q="cid=$contactID&aid=$latestRevisionID"}">» {ts}View current revision{/ts}</a><br /><span style="color: red;">{ts}(this is not the current revision){/ts}</span><br />{/if}
56 {if $parentID}<a class="open-inline-noreturn" href="{crmURL p='civicrm/case/activity/view' h=0 q="cid=$contactID&aid=$parentID"}">» {ts}Prompted by{/ts}</a>{/if}
59 <td colspan="2">{if $row.label eq 'Details'}{$row.value|crmStripAlternatives|nl2br}{elseif $row.type eq 'Date'}{$row.value|crmDate}{else}{$row.value}{/if}</td>
63 {* Display custom field data for the activity. *}
64 {if $report.customGroups}
65 {foreach from=$report.customGroups item=customGroup key=groupTitle name=custom}
66 <tr class="crm-case-activityview-form-block-groupTitle form-layout">
67 <td colspan="3">{$groupTitle}</td>
69 {foreach from=$customGroup item=customField name=fields}
70 <tr{if ! $smarty.foreach.fields.last} style="border-bottom: 1px solid #F6F6F6;"{/if}>
71 <td class="label">{$customField.label}</td>
72 <td>{$customField.value}</td>
80 <div class="crm-submit-buttons">
81 {crmButton p='civicrm/case' q="reset=1" class='cancel' icon='times'}{ts}Done{/ts}{/crmButton}