houdini/app/views/donation_mailer/_recurring_donation_table.html.erb
2018-07-25 10:07:51 -05:00

49 lines
1.1 KiB
Text

<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<table class='table'>
<thead>
<th colspan='2'>
Donation Details
</th>
</thead>
<tbody>
<tr>
<td><strong>Recurring Amount</strong></td>
<td> <%= print_currency(donation.amount, donation.nonprofit.currency_symbol) %></td>
</tr>
<tr>
<td><strong>Recurring Interval</strong></td>
<td> Every <%= donation.recurring_donation.interval %> <%= donation.recurring_donation.time_unit %></td>
</tr>
<tr>
<td><strong>Start Date</strong></td>
<td><%= Format::Date.simple donation.created_at %></td>
</tr>
<% if donation.campaign && donation.campaign.published %>
<tr>
<td><strong>Campaign</strong></td>
<td> <%= donation.campaign.name %></td>
</tr>
<% end %>
<% if donation.card %>
<tr>
<td><strong>Card Name</strong></td>
<td> <%= donation.card.name %> </td>
</tr>
<% end %>
<tr>
<td><strong>Donation ID</strong></td>
<td> <%= donation.id %> </td>
</tr>
</tbody>
</table>