2020-06-12 20:03:43 +00:00
|
|
|
<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
|
|
|
|
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
|
2018-03-25 17:30:42 +00:00
|
|
|
<table class='table'>
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
<th colspan='2'>
|
|
|
|
Donation Details
|
|
|
|
</th>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td><strong>Recurring Amount</strong></td>
|
2018-07-23 21:35:27 +00:00
|
|
|
<td> <%= print_currency(donation.amount, donation.nonprofit.currency_symbol) %></td>
|
2018-03-25 17:30:42 +00:00
|
|
|
</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>
|
2019-01-22 21:26:07 +00:00
|
|
|
<td><a href='<%= nonprofit_campaign_url(donation.nonprofit, donation.campaign) %>'><%= donation.campaign.name %></a><small>(Campaign Id: <%= donation.campaign.id%>, Creator: <a href="mailto:<%= donation.campaign.profile.user.email %>"><%= donation.campaign.profile.user.email %></a>)</small></td>
|
2018-03-25 17:30:42 +00:00
|
|
|
</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>
|