houdini/app/views/donation_mailer/_donation_changed_amount_table.html.erb

84 lines
2.3 KiB
Text
Raw Normal View History

<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<table class='table'>
<thead>
<th colspan='2'>
Recurring Donation Change
</th>
</thead>
<tbody>
<tr>
<td><strong>Donor Name</strong></td>
<% if donation.anonymous %>
<td>Anonymous</td>
<% else %>
<td><%= donation.supporter.name %></td>
<% end %>
</tr>
<tr>
<td><strong>New Amount</strong></td>
2018-07-23 21:35:27 +00:00
<td> <%= print_currency(donation.amount, donation.nonprofit.currency_symbol) %></td>
</tr>
<tr>
<td><strong>Previous Amount</strong></td>
2018-07-23 21:35:27 +00:00
<td> <%= print_currency(previous_amount, donation.nonprofit.currency_symbol) %></td>
</tr>
<% if donation.campaign %>
<tr>
<td><strong>Campaign</strong></td>
<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>
</tr>
<% end %>
<% if donation.event %>
<tr>
<td><strong>Event</strong></td>
<td> <a href='<%= nonprofit_event_url(donation.nonprofit, donation.event) %>'><%= donation.event.name %></a></td>
</tr>
<% end %>
<% if donation.recurring_donation %>
<tr>
<td><strong>Recurring Interval</strong></td>
<td> Every <%= donation.recurring_donation.interval %> <%= donation.recurring_donation.time_unit %></td>
</tr>
<tr>
<td><strong>Recurring Since</strong></td>
<td> <%= simple_date donation.recurring_donation.created_at %></td>
</tr>
<% end %>
<tr>
<td><strong>Organization</strong></td>
<td> <%= donation.nonprofit.name %></td>
</tr>
<% unless donation.nonprofit.ein.blank? %>
<tr>
<td><strong>Tax ID Number</strong></td>
<td> <%= donation.nonprofit.ein %></td>
</tr>
<% end %>
<tr>
<td><strong>Comment</strong></td>
<td> <%= donation.comment || 'None' %></td>
</tr>
<tr>
<td><strong>Designation</strong></td>
<td> <%= donation.designation || 'None' %></td>
</tr>
<tr>
<td><strong>Dedication</strong></td>
<td> <%= donation.dedication ? Format::Dedication.from_json(donation.dedication) : 'None' %></td>
</tr>
</tbody>
</table>