Add in recurring_donation cancel/modify link

This commit is contained in:
Eric Schultz 2018-10-09 13:34:57 -05:00
parent 6607f1e9e7
commit d0bda57f69
2 changed files with 7 additions and 0 deletions

View file

@ -22,4 +22,10 @@
<br>
<%= render 'donation_mailer/donation_payment_table', donation: @donation, charge: @donation.charges.last %>
<% if @donation.recurring_donation %>
<p>
<%= t('mailer.donations.donor_receipt.recurring_donation_cancel_modify_html', management_url: edit_recurring_donation_url(@donation.recurring_donation, {t: @donation.recurring_donation.edit_token}))%>
</p>
<% end %>
<%= render 'emails/powered_by' %>

View file

@ -29,6 +29,7 @@ en:
transfer_label_html: "<strong>Donation %{nonprofit_statement}</strong>."
oneoff_donation_html: "Your donation towards <strong>%{nonprofit_name}</strong> was successful!"
recurring_donation_html: "Your recurring donation towards <strong>%{nonprofit_name}</strong>, started on %{start_date}, has been successfully paid."
recurring_donation_cancel_modify_html: "If you need to update your card or cancel your recurring donation, please follow this link: <a href=\"%{management_url}\">%{management_url}</a>"
donor_direct_debit_notification:
subject: "Donation receipt for %{nonprofit_name}"
transfer_info_html: "This transfer will appear on your bank statement as %{label}"