Merge pull request #18158 from mattwire/createProfileContact
[civicrm-core.git] / xml / templates / message_templates / pledge_acknowledge_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
15 <!-- BEGIN HEADER -->
16 <!-- You can add table row(s) here with logo or other header elements -->
17 <!-- END HEADER -->
18
19 <!-- BEGIN CONTENT -->
20
21 <tr>
22 <td>
23 {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if}
24 <p>{ts}Thank you for your generous pledge.{/ts}</p>
25 </td>
26 </tr>
27 <tr>
28 <td>
29 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
30 <tr>
31 <th {$headerStyle}>
32 {ts}Pledge Information{/ts}
33 </th>
34 </tr>
35 <tr>
36 <td {$labelStyle}>
37 {ts}Pledge Received{/ts}
38 </td>
39 <td {$valueStyle}>
40 {$create_date|truncate:10:''|crmDate}
41 </td>
42 </tr>
43 <tr>
44 <td {$labelStyle}>
45 {ts}Total Pledge Amount{/ts}
46 </td>
47 <td {$valueStyle}>
48 {$total_pledge_amount|crmMoney:$currency}
49 </td>
50 </tr>
51 <tr>
52 <th {$headerStyle}>
53 {ts}Payment Schedule{/ts}
54 </th>
55 </tr>
56 <tr>
57 <td colspan="2" {$valueStyle}>
58 <p>{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}</p>
59
60 {if $frequency_day}
61 <p>{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}</p>
62 {/if}
63 </td>
64 </tr>
65
66 {if $payments}
67 {assign var="count" value="1"}
68 {foreach from=$payments item=payment}
69 <tr>
70 <td {$labelStyle}>
71 {ts 1=$count}Payment %1{/ts}
72 </td>
73 <td {$valueStyle}>
74 {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:''|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:''|crmDate}{/if}
75 </td>
76 </tr>
77 {assign var="count" value=`$count+1`}
78 {/foreach}
79 {/if}
80
81 <tr>
82 <td colspan="2" {$valueStyle}>
83 <p>{ts 1='{domain.phone}' 2='{domain.email}'}Please contact us at %1 or send email to %2 if you have questions
84 or need to modify your payment schedule.{/ts}</p>
85 </td>
86 </tr>
87
88 {if $customGroup}
89 {foreach from=$customGroup item=value key=customName}
90 <tr>
91 <th {$headerStyle}>
92 {$customName}
93 </th>
94 </tr>
95 {foreach from=$value item=v key=n}
96 <tr>
97 <td {$labelStyle}>
98 {$n}
99 </td>
100 <td {$valueStyle}>
101 {$v}
102 </td>
103 </tr>
104 {/foreach}
105 {/foreach}
106 {/if}
107
108 </table>
109 </td>
110 </tr>
111
112 </table>
113
114 </body>
115 </html>