Merge pull request #11949 from magnolia61/Hide_waitinglist_for_past_and_registration_...
[civicrm-core.git] / templates / CRM / Case / Form / ActivityView.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
fee14197 3 | CiviCRM version 5 |
6a488035 4 +--------------------------------------------------------------------+
8c9251b3 5 | Copyright CiviCRM LLC (c) 2004-2018 |
6a488035
TO
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
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. |
12 | |
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. |
17 | |
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 +--------------------------------------------------------------------+
25*}
880816e0 26{* View Case Activities *}
6a488035 27<div class="crm-block crm-content-block crm-case-activity-view-block">
880816e0
CW
28 {if $revs}
29 {strip}
30 <table class="crm-info-panel">
31 <tr class="columnheader">
32 <th>{ts}Created By{/ts}</th>
33 <th>{ts}Created On{/ts}</th>
34 <th>&nbsp;</th>
6a488035 35 </tr>
880816e0
CW
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>
41 </tr>
42 {/foreach}
43 </table>
44 {/strip}
45 {else}
46 {if $report}
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 *}
52 <td>{$row.value}</td>
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"}">&raquo; {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"}">&raquo; {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"}">&raquo; {ts}Prompted by{/ts}</a>{/if}
57 </td>
58 {else}
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>
60 {/if}
61 </tr>
6a488035 62 {/foreach}
880816e0
CW
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>
68 </tr>
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>
73 </tr>
74 {/foreach}
75 {/foreach}
76 {/if}
77 </table>
78 {/if}
79 {/if}
80 <div class="crm-submit-buttons">
80bc2820 81 {crmButton p='civicrm/case' q="reset=1" class='cancel' icon='times'}{ts}Done{/ts}{/crmButton}
880816e0 82 </div>
6a488035 83</div>