From 9dddcd782237a8767225b03b50977735b839dcd3 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Wed, 25 Nov 2015 12:43:19 +0530 Subject: [PATCH] add msg template files --- .../participant_transferred_html.tpl | 146 ++++++++++++++++++ .../participant_transferred_subject.tpl | 1 + .../participant_transferred_text.tpl | 57 +++++++ 3 files changed, 204 insertions(+) create mode 100644 CRM/Upgrade/4.7.beta1.msg_template/message_templates/participant_transferred_html.tpl create mode 100644 CRM/Upgrade/4.7.beta1.msg_template/message_templates/participant_transferred_subject.tpl create mode 100644 CRM/Upgrade/4.7.beta1.msg_template/message_templates/participant_transferred_text.tpl diff --git a/CRM/Upgrade/4.7.beta1.msg_template/message_templates/participant_transferred_html.tpl b/CRM/Upgrade/4.7.beta1.msg_template/message_templates/participant_transferred_html.tpl new file mode 100644 index 0000000000..efb55af315 --- /dev/null +++ b/CRM/Upgrade/4.7.beta1.msg_template/message_templates/participant_transferred_html.tpl @@ -0,0 +1,146 @@ + + + + + + + + +{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} +{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} + +
+ + + + + + + + + + + + + + + + + + + +
+

{ts 1=$contact.display_name}Dear %1{/ts},

+

{ts 1=$to_participant}Your Event Registration has been Transferred to %1.{/ts}

+
+ + + + + + + + + + + + + {if $isShowLocation} + + + + {/if} + + {if $event.location.phone.1.phone || $event.location.email.1.email} + + + + {foreach from=$event.location.phone item=phone} + {if $phone.phone} + + + + + {/if} + {/foreach} + {foreach from=$event.location.email item=eventEmail} + {if $eventEmail.email} + + + + + {/if} + {/foreach} + {/if} + + {if $contact.email} + + + + + + + {/if} + + {if $register_date} + + + + + {/if} + +
+ {ts}Event Information and Location{/ts} +
+ {$event.event_title}
+ {$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} +
+ {ts}Participant Role{/ts}: + + {$participant.role} +
+ {if $event.location.address.1.name} + {$event.location.address.1.name}
+ {/if} + {if $event.location.address.1.street_address} + {$event.location.address.1.street_address}
+ {/if} + {if $event.location.address.1.supplemental_address_1} + {$event.location.address.1.supplemental_address_1}
+ {/if} + {if $event.location.address.1.supplemental_address_2} + {$event.location.address.1.supplemental_address_2}
+ {/if} + {if $event.location.address.1.city} + {$event.location.address.1.city} {$event.location.address.1.postal_code} + {if $event.location.address.1.postal_code_suffix} + - {$event.location.address.1.postal_code_suffix} + {/if} + {/if} +
+ {ts}Event Contacts:{/ts} +
+ {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if} + + {$phone.phone} +
+ {ts}Email{/ts} + + {$eventEmail.email} +
+ {ts}Registered Email{/ts} +
+ {$contact.email} +
+ {ts}Registration Date{/ts} + + {$participant.register_date|crmDate} +
+
+

{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}

+
+
+ + + diff --git a/CRM/Upgrade/4.7.beta1.msg_template/message_templates/participant_transferred_subject.tpl b/CRM/Upgrade/4.7.beta1.msg_template/message_templates/participant_transferred_subject.tpl new file mode 100644 index 0000000000..6488ece90b --- /dev/null +++ b/CRM/Upgrade/4.7.beta1.msg_template/message_templates/participant_transferred_subject.tpl @@ -0,0 +1 @@ +{ts 1=$event.event_title}Event Registration Transferred for %1{/ts} diff --git a/CRM/Upgrade/4.7.beta1.msg_template/message_templates/participant_transferred_text.tpl b/CRM/Upgrade/4.7.beta1.msg_template/message_templates/participant_transferred_text.tpl new file mode 100644 index 0000000000..6c50c9b450 --- /dev/null +++ b/CRM/Upgrade/4.7.beta1.msg_template/message_templates/participant_transferred_text.tpl @@ -0,0 +1,57 @@ +{ts 1=$contact.display_name}Dear %1{/ts}, + +{ts 1=$to_participant}Your Event Registration has been transferred to %1.{/ts} + +=========================================================== +{ts}Event Information and Location{/ts} + +=========================================================== +{$event.event_title} +{$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} + +{ts}Participant Role{/ts}: {$participant.role} + +{if $isShowLocation} +{if $event.location.address.1.name} + +{$event.location.address.1.name} +{/if} +{if $event.location.address.1.street_address}{$event.location.address.1.street_address} +{/if} +{if $event.location.address.1.supplemental_address_1}{$event.location.address.1.supplemental_address_1} +{/if} +{if $event.location.address.1.supplemental_address_2}{$event.location.address.1.supplemental_address_2} +{/if} +{if $event.location.address.1.city}{$event.location.address.1.city} {$event.location.address.1.postal_code}{if $event.location.address.1.postal_code_suffix} - $event.location.address.1.postal_code_suffix}{/if} +{/if} + +{/if}{*End of isShowLocation condition*} + +{if $event.location.phone.1.phone || $event.location.email.1.email} + +{ts}Event Contacts:{/ts} +{foreach from=$event.location.phone item=phone} +{if $phone.phone} + +{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} +{/foreach} +{foreach from=$event.location.email item=eventEmail} +{if $eventEmail.email} + +{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach} +{/if} + +{if $contact.email} + +=========================================================== +{ts}Registered Email{/ts} + +=========================================================== +{$contact.email} +{/if} + +{if $register_date} +{ts}Registration Date{/ts}: {$participant.register_date|crmDate} +{/if} + +{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts} -- 2.25.1