Files
openfoodnetwork/app/views/payment_mailer/authorization_required.html.haml
drummer83 a84a16dd69 Add signoff to all remaining emails which didn't have one yet
To do so the shipment mailer and payment mailers need to know the @order

Remove the 'callout' class from distributor signoff for uniformity and to keep the callout available for call to actions only

Remaining translation keys for emails will be re-organized in a separate commit
2024-09-21 13:20:37 +02:00

18 lines
692 B
Plaintext

- if @payment.order.distributor.logo.variable?
- @enterprise_for_logo = @payment.order.distributor
- greeting_key = "mailers_shared.enterprise_greeting"
- intro_key = ".intro_html"
= render partial: 'shared/mailers/greeting_and_intro',
locals: { greeting: t(greeting_key, name: @payment.order.distributor.contact_name),
intro: t(intro_key, order_number: @payment.order.number, distributor: @payment.order.distributor.name),
enterprise_for_logo: @enterprise_for_logo }
%p
= t(".instructions")
%p
= link_to spree.edit_admin_order_url(@payment.order), spree.edit_admin_order_url(@payment.order)
= render 'shared/mailers/signoff_instance'