Merge pull request #17126 from totten/master-upgr-dispatch
[civicrm-core.git] / xml / templates / message_templates / contribution_recurring_notify_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 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;">
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 </td>
26 </tr>
27
28 <tr>
29 <td>&nbsp;</td>
30 </tr>
31
32 {if $recur_txnType eq 'START'}
33 {if $auto_renew_membership}
34 <tr>
35 <td>
36 <p>{ts}Thanks for your auto renew membership sign-up.{/ts}</p>
37 <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s). {/ts}</p>
38 </td>
39 </tr>
40 {if $cancelSubscriptionUrl}
41 <tr>
42 <td {$labelStyle}>
43 {ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href="%1">visiting this web page</a>.{/ts}
44 </td>
45 </tr>
46 {/if}
47 {if $updateSubscriptionBillingUrl}
48 <tr>
49 <td {$labelStyle}>
50 {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href="%1">visiting this web page</a>.{/ts}
51 </td>
52 </tr>
53 {/if}
54 {else}
55 <tr>
56 <td>
57 <p>{ts}Thanks for your recurring contribution sign-up.{/ts}</p>
58 <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments }{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.</p>
59 <p>{ts}Start Date{/ts}: {$recur_start_date|crmDate}</p>
60 </td>
61 </tr>
62 {if $cancelSubscriptionUrl}
63 <tr>
64 <td {$labelStyle}>
65 {ts 1=$cancelSubscriptionUrl} You can cancel the recurring contribution option by <a href="%1">visiting this web page</a>.{/ts}
66 </td>
67 </tr>
68 {/if}
69 {if $updateSubscriptionBillingUrl}
70 <tr>
71 <td {$labelStyle}>
72 {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts}
73 </td>
74 </tr>
75 {/if}
76 {if $updateSubscriptionUrl}
77 <tr>
78 <td {$labelStyle}>
79 {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments details for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts}
80 </td>
81 </tr>
82 {/if}
83 {/if}
84
85 {elseif $recur_txnType eq 'END'}
86
87 {if $auto_renew_membership}
88 <tr>
89 <td>
90 <p>{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}</p>
91 </td>
92 </tr>
93 {else}
94 <tr>
95 <td>
96 <p>{ts}Your recurring contribution term has ended.{/ts}</p>
97 <p>{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}</p>
98 </td>
99 </tr>
100 <tr>
101 <td>
102 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
103 <tr>
104 <th {$headerStyle}>
105 {ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}
106 </th>
107 </tr>
108 <tr>
109 <td {$labelStyle}>
110 {ts}Start Date{/ts}
111 </td>
112 <td {$valueStyle}>
113 {$recur_start_date|crmDate}
114 </td>
115 </tr>
116 <tr>
117 <td {$labelStyle}>
118 {ts}End Date{/ts}
119 </td>
120 <td {$valueStyle}>
121 {$recur_end_date|crmDate}
122 </td>
123 </tr>
124 </table>
125 </td>
126 </tr>
127
128 {/if}
129 {/if}
130
131 </table>
132 </center>
133
134 </body>
135 </html>