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