Merge pull request #5903 from scardinius/master
[civicrm-core.git] / xml / templates / message_templates / participant_confirm_html.tpl
index b1a5aa349c3a9e9fba18641068784d91c32bb2a1..7585ee306f833e0c888f430d27013682908e4363 100644 (file)
     </td>
    </tr>
   {/if}
+  {if $event.allow_selfcancelxfer }
+  This event allows for self-cancel or transfer
+  {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participantID`&{contact.checksum}"  h=0 a=1 fe=1}{/capture}
+       <a href="{$selfService}">{ts}Self service cancel transfer{/ts}</a>
+  {/if}
+
   <tr>
    <td>
     <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
     </table>
    </td>
   </tr>
-
+  {if $event.allow_selfcancelxfer }
+   <tr>
+     <td colspan="2" {$valueStyle}>
+       {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 />
+         {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}"  h=0 a=1 fe=1}{/capture}
+       <a href="{$selfService}">{ts}Click here to transfer or cancel your registration.{/ts}</a>
+     </td>
+   </tr>
+  {/if}
   <tr>
-   <td>
+   <td colspan="2" {$valueStyle}>
     <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
    </td>
   </tr>