Merge pull request #23932 from webmaster-cses-org-uk/patch-4
[civicrm-core.git] / xml / templates / message_templates / participant_confirm_html.tpl
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 <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;">
14 <!-- BEGIN HEADER -->
15 <!-- You can add table row(s) here with logo or other header elements -->
16 <!-- END HEADER -->
17
18 <!-- BEGIN CONTENT -->
19
20 <tr>
21 <td>
22 {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if}
23 <p>{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}</p>
24 </td>
25 </tr>
26 {if !$isAdditional and $participant.id}
27 <tr>
28 <th {$headerStyle}>
29 {ts}Confirm Your Registration{/ts}
30 </th>
31 </tr>
32 <tr>
33 <td colspan="2" {$valueStyle}>
34 {capture assign=confirmUrl}{crmURL p='civicrm/event/confirm' q="reset=1&participantId=`$participant.id`&cs=`$checksumValue`" a=true h=0 fe=1}{/capture}
35 <a href="{$confirmUrl}">{ts}Click here to confirm and complete your registration{/ts}</a>
36 </td>
37 </tr>
38 {/if}
39 {if $event.allow_selfcancelxfer }
40 {ts}This event allows for{/ts}
41 {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
42 <a href="{$selfService}"> {ts}self service cancel or transfer{/ts}</a>
43 {/if}
44
45 <tr>
46 <td>
47 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
48 <tr>
49 <th {$headerStyle}>
50 {ts}Event Information and Location{/ts}
51 </th>
52 </tr>
53 <tr>
54 <td colspan="2" {$valueStyle}>
55 {$event.event_title}<br />
56 {$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}
57 </td>
58 </tr>
59 {if $conference_sessions}
60 <tr>
61 <td colspan="2" {$labelStyle}>
62 {ts}Your schedule:{/ts}
63 </td>
64 </tr>
65 <tr>
66 <td colspan="2" {$valueStyle}>
67 {assign var='group_by_day' value='NA'}
68 {foreach from=$conference_sessions item=session}
69 {if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
70 {assign var='group_by_day' value=$session.start_date}
71 <em>{$group_by_day|date_format:"%m/%d/%Y"}</em><br />
72 {/if}
73 {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br />
74 {if $session.location}&nbsp;&nbsp;&nbsp;&nbsp;{$session.location}<br />{/if}
75 {/foreach}
76 </td>
77 </tr>
78 {/if}
79 <tr>
80 <td {$labelStyle}>
81 {ts}Participant Role{/ts}:
82 </td>
83 <td {$valueStyle}>
84 {$participant.role}
85 </td>
86 </tr>
87
88 {if $isShowLocation}
89 <tr>
90 <td colspan="2" {$valueStyle}>
91 {$event.location.address.1.display|nl2br}
92 </td>
93 </tr>
94 {/if}
95
96 {if $event.location.phone.1.phone || $event.location.email.1.email}
97 <tr>
98 <td colspan="2" {$labelStyle}>
99 {ts}Event Contacts:{/ts}
100 </td>
101 </tr>
102 {foreach from=$event.location.phone item=phone}
103 {if $phone.phone}
104 <tr>
105 <td {$labelStyle}>
106 {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
107 </td>
108 <td {$valueStyle}>
109 {$phone.phone}
110 </td>
111 </tr>
112 {/if}
113 {/foreach}
114 {foreach from=$event.location.email item=eventEmail}
115 {if $eventEmail.email}
116 <tr>
117 <td {$labelStyle}>
118 {ts}Email{/ts}
119 </td>
120 <td {$valueStyle}>
121 {$eventEmail.email}
122 </td>
123 </tr>
124 {/if}
125 {/foreach}
126 {/if}
127
128 {if $event.is_public}
129 <tr>
130 <td colspan="2" {$valueStyle}>
131 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
132 <a href="{$icalFeed}">{ts}Download iCalendar entry for this event.{/ts}</a>
133 </td>
134 </tr>
135 <tr>
136 <td colspan="2" {$valueStyle}>
137 {capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
138 <a href="{$gCalendar}">{ts}Add event to Google Calendar{/ts}</a>
139 </td>
140 </tr>
141 {/if}
142
143 {if '{contact.email}'}
144 <tr>
145 <th {$headerStyle}>
146 {ts}Registered Email{/ts}
147 </th>
148 </tr>
149 <tr>
150 <td colspan="2" {$valueStyle}>
151 {contact.email}
152 </td>
153 </tr>
154 {/if}
155
156 {if $register_date}
157 <tr>
158 <td {$labelStyle}>
159 {ts}Registration Date{/ts}
160 </td>
161 <td {$valueStyle}>
162 {$participant.register_date|crmDate}
163 </td>
164 </tr>
165 {/if}
166
167 </table>
168 </td>
169 </tr>
170 {if $event.allow_selfcancelxfer }
171 <tr>
172 <td colspan="2" {$valueStyle}>
173 {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}<br />
174 {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
175 <a href="{$selfService}">{ts}Click here to transfer or cancel your registration.{/ts}</a>
176 </td>
177 </tr>
178 {/if}
179 <tr>
180 <td colspan="2" {$valueStyle}>
181 <p>{ts 1='{domain.phone}' 2='{domain.email}'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
182 </td>
183 </tr>
184
185 </table>
186
187 </body>
188 </html>