[php8-compact] Fix issues with participant message templates causing Event Tests...
[civicrm-core.git] / xml / templates / message_templates / participant_cancelled_html.tpl
CommitLineData
6a488035
TO
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5 <title></title>
6</head>
7<body>
8
9{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
10{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
11{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
12
13<center>
cb342529 14 <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;">
6a488035
TO
15
16 <!-- BEGIN HEADER -->
17 <!-- You can add table row(s) here with logo or other header elements -->
18 <!-- END HEADER -->
19
20 <!-- BEGIN CONTENT -->
21
22 <tr>
23 <td>
56658066 24 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
6a488035
TO
25 <p>{ts}Your Event Registration has been cancelled.{/ts}</p>
26 </td>
27 </tr>
28 <tr>
29 <td>
30 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
31 <tr>
32 <th {$headerStyle}>
33 {ts}Event Information and Location{/ts}
34 </th>
35 </tr>
36 <tr>
37 <td colspan="2" {$valueStyle}>
38 {$event.event_title}<br />
39 {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
40 </td>
41 </tr>
42 <tr>
43 <td {$labelStyle}>
44 {ts}Participant Role{/ts}:
45 </td>
46 <td {$valueStyle}>
47 {$participant.role}
48 </td>
49 </tr>
50
51 {if $isShowLocation}
52 <tr>
53 <td colspan="2" {$valueStyle}>
060625d6 54 {$event.location.address.1.display|nl2br}
6a488035
TO
55 </td>
56 </tr>
57 {/if}
58
44000ca8 59 {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}
6a488035
TO
60 <tr>
61 <td colspan="2" {$labelStyle}>
62 {ts}Event Contacts:{/ts}
63 </td>
64 </tr>
65 {foreach from=$event.location.phone item=phone}
66 {if $phone.phone}
67 <tr>
68 <td {$labelStyle}>
69 {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
70 </td>
71 <td {$valueStyle}>
72 {$phone.phone}
73 </td>
74 </tr>
75 {/if}
76 {/foreach}
77 {foreach from=$event.location.email item=eventEmail}
78 {if $eventEmail.email}
79 <tr>
80 <td {$labelStyle}>
81 {ts}Email{/ts}
82 </td>
83 <td {$valueStyle}>
84 {$eventEmail.email}
85 </td>
86 </tr>
87 {/if}
88 {/foreach}
89 {/if}
90
6a488035
TO
91 {if $contact.email}
92 <tr>
93 <th {$headerStyle}>
94 {ts}Registered Email{/ts}
95 </th>
96 </tr>
97 <tr>
98 <td colspan="2" {$valueStyle}>
99 {$contact.email}
100 </td>
101 </tr>
102 {/if}
103
44000ca8 104 {if !empty($register_date)}
6a488035
TO
105 <tr>
106 <td {$labelStyle}>
107 {ts}Registration Date{/ts}
108 </td>
109 <td {$valueStyle}>
110 {$participant.register_date|crmDate}
111 </td>
112 </tr>
113 {/if}
114
115 </table>
116 </td>
117 </tr>
118
119 <tr>
120 <td>
121 <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
122 </td>
123 </tr>
124
125 </table>
126</center>
127
128</body>
129</html>