Merge pull request #22449 from mattwire/phpnotices
[civicrm-core.git] / templates / CRM / Case / XMLProcessor / Report.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
8 +--------------------------------------------------------------------+
9 *}
10 <?xml version="1.0" encoding="UTF-8"?>
11 <Case>
12 <Client>{$case.clientName|escape}</Client>
13 <CaseType>{$case.caseType}</CaseType>
14 <CaseSubject>{$case.subject|escape}</CaseSubject>
15 <CaseStatus>{$case.status}</CaseStatus>
16 <CaseOpen>{$case.start_date}</CaseOpen>
17 <CaseClose>{$case.end_date}</CaseClose>
18 <ActivitySet>
19 <Label>{$activitySet.label}</Label>
20 <IncludeActivities>{$includeActivities}</IncludeActivities>
21 <Redact>{$isRedact}</Redact>
22 {foreach from=$activities item=activity}
23 <Activity>
24 <EditURL>{$activity.editURL}</EditURL>
25 <Fields>
26 {foreach from=$activity.fields item=field}
27 <Field>
28 <Name>{$field.name|escape}</Name>
29 <Label>{$field.label|escape}</Label>
30 {if $field.category}
31 <Category>{$field.category|escape}</Category>
32 {/if}
33 <Value>{$field.value|escape}</Value>
34 <Type>{$field.type}</Type>
35 </Field>
36 {/foreach}
37 {if $activity.customGroups}
38 <CustomGroups>
39 {foreach from=$activity.customGroups key=customGroupName item=customGroup}
40 <CustomGroup>
41 <GroupName>{$customGroupName|escape}</GroupName>
42 {foreach from=$customGroup item=field}
43 <Field>
44 <Name>{*TODO*}</Name>
45 <Label>{$field.label|escape}</Label>
46 <Value>{$field.value|escape}</Value>
47 <Type>{$field.type}</Type>
48 </Field>
49 {/foreach}
50 </CustomGroup>
51 {/foreach}
52 </CustomGroups>
53 {/if}
54 </Fields>
55 </Activity>
56 {/foreach}
57 </ActivitySet>
58 </Case>