Merge pull request #14928 from lcdservices/dev-core-1158
[civicrm-core.git] / templates / CRM / Case / Audit / Report.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
10<html xmlns="http://www.w3.org/1999/xhtml" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
11<head>
12 <title>{$pageTitle}</title>
13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7e8bc026 14 <base href="{crmURL p="" a=1}" /><!--[if IE]></base><![endif]-->
6a488035
TO
15 <style type="text/css" media="screen, print">@import url({$config->userFrameworkResourceURL}css/print.css);</style>
16</head>
17
18<body>
19<div id="crm-container" class="crm-container">
20<h1>{$pageTitle}</h1>
21<div id="report-date">{$reportDate}</div>
21058a88
PN
22{if $case}
23 <h2>{ts}Case Summary{/ts}</h2>
24 <table class="report-layout">
6a488035
TO
25 <tr>
26 <th class="reports-header">{ts}Client{/ts}</th>
27 <th class="reports-header">{ts}Case Type{/ts}</th>
21058a88
PN
28 <th class="reports-header">{ts}Status{/ts}</th>
29 <th class="reports-header">{ts}Start Date{/ts}</th>
6a488035
TO
30 <th class="reports-header">{ts}Case ID{/ts}</th>
31 </tr>
32 <tr>
21058a88
PN
33 <td class="crm-case-report-clientName">{$case.clientName}</td>
34 <td class="crm-case-report-caseType">{$case.caseType}</td>
35 <td class="crm-case-report-status">{$case.status}</td>
36 <td class="crm-case-report-start_date">{$case.start_date}</td>
37 <td class="crm-case-report-{$caseId}">{$caseId}</td>
6a488035 38 </tr>
21058a88
PN
39 </table>
40{/if}
41
42{if $caseRelationships}
43 <h2>{ts}Case Roles{/ts}</h2>
44 <table class ="report-layout">
6a488035
TO
45 <tr>
46 <th class="reports-header">{ts}Case Role{/ts}</th>
47 <th class="reports-header">{ts}Name{/ts}</th>
21058a88
PN
48 <th class="reports-header">{ts}Phone{/ts}</th>
49 <th class="reports-header">{ts}Email{/ts}</th>
6a488035
TO
50 </tr>
51
52 {foreach from=$caseRelationships item=row key=relId}
21058a88
PN
53 <tr>
54 <td class="crm-case-report-caserelationships-relation">{$row.relation}</td>
55 <td class="crm-case-report-caserelationships-name">{$row.name}</td>
56 <td class="crm-case-report-caserelationships-phone">{$row.phone}</td>
57 <td class="crm-case-report-caserelationships-email">{$row.email}</td>
58 </tr>
6a488035
TO
59 {/foreach}
60 {foreach from=$caseRoles item=relName key=relTypeID}
21058a88
PN
61 {if $relTypeID neq 'client'}
62 <tr>
63 <td>{$relName}</td>
64 <td>{ts}(not assigned){/ts}</td>
65 <td></td>
66 <td></td>
67 </tr>
68 {else}
69 <tr>
70 <td class="crm-case-report-caseroles-role">{$relName.role}</td>
71 <td class="crm-case-report-caseroles-sort_name">{$relName.sort_name}</td>
72 <td class="crm-case-report-caseroles-phone">{$relName.phone}</td>
73 <td class="crm-case-report-caseroles-email">{$relName.email}</td>
74 </tr>
75 {/if}
76 {/foreach}
77 </table>
78 <br />
79{/if}
6a488035
TO
80{if $otherRelationships}
81 <table class ="report-layout">
82 <tr>
83 <th class="reports-header">{ts}Client Relationship{/ts}</th>
84 <th class="reports-header">{ts}Name{/ts}</th>
85 <th class="reports-header">{ts}Phone{/ts}</th>
86 <th class="reports-header">{ts}Email{/ts}</th>
87 </tr>
88 {foreach from=$otherRelationships item=row key=relId}
89 <tr>
90 <td class="crm-case-report-otherrelationships-relation">{$row.relation}</td>
91 <td class="crm-case-report-otherrelationships-name">{$row.name}</td>
92 <td class="crm-case-report-otherrelationships-phone">{$row.phone}</td>
93 <td class="crm-case-report-otherrelationships-email">{$row.email}</td>
94 </tr>
95 {/foreach}
96 </table>
97 <br />
98{/if}
99
100{if $globalRelationships}
101 <table class ="report-layout">
102 <tr>
103 <th class="reports-header">{$globalGroupInfo.title}</th>
104 <th class="reports-header">{ts}Phone{/ts}</th>
105 <th class="reports-header">{ts}Email{/ts}</th>
106 </tr>
107 {foreach from=$globalRelationships item=row key=relId}
108 <tr>
109 <td class="crm-case-report-globalrelationships-sort_name">{$row.sort_name}</td>
110 <td class="crm-case-report-globalrelationships-phone">{$row.phone}</td>
111 <td class="crm-case-report-globalrelationships-email">{$row.email}</td>
112 </tr>
113 {/foreach}
114 </table>
115{/if}
116
b077cff9 117{if $caseCustomFields}
219af4d3
CW
118 {foreach from=$caseCustomFields item=group}
119 <h2>{$group.title}</h2>
120 <table class ="report-layout">
121 {foreach from=$group.values item=row}
122 <tr>
123 <th class="label">{$row.label}</td>
124 <td class="crm-case-report-custom-field">{$row.value}</td>
125 </tr>
126 {/foreach}
b077cff9 127 </table>
219af4d3 128 {/foreach}
b077cff9
JM
129{/if}
130
21058a88
PN
131{if $activities}
132 <h2>{ts}Case Activities{/ts}</h2>
133 {foreach from=$activities item=activity key=key}
134 <table class ="report-layout">
135 {foreach from=$activity item=field name=fieldloop}
136 <tr class="crm-case-report-activity-{$field.label}">
137 <th scope="row" class="label">{$field.label|escape}</th>
138 {if $field.label eq 'Activity Type' or $field.label eq 'Status'}
139 <td class="bold">{$field.value|escape}</td>
140 {elseif $field.label eq 'Details' or $field.label eq 'Subject'}
141 <td>{$field.value}</td>
142 {else}
143 <td>{$field.value|escape}</td>
144 {/if}
145 </tr>
146 {/foreach}
147 </table>
148 <br />
149 {/foreach}
150{/if}
6a488035
TO
151</div>
152</body>
153</html>