Files
openfoodnetwork/app/views/subscription_mailer/confirmation_email.html.haml
2018-09-01 23:46:12 +08:00

25 lines
942 B
Plaintext

- intro_key = @order.paid? ? "email_so_payment_success_intro_html" : "email_so_confirmation_intro_html"
= render 'header', intro: t(intro_key, distributor: @order.distributor.name)
%p.callout
= t("email_so_confirmation_explainer_html")
- if @order.user.present?
= t("email_so_edit_false_html",
orders_close_at: l(@order.order_cycle.orders_close_at, format: mail_long_datetime_format),
order_url: spree.order_url(@order))
= t("email_so_contact_distributor_html", distributor: @order.distributor.name, email: @order.distributor.contact.email)
%p  
%h4
= t :email_confirm_customer_number_html, number: @order.number
%p
= t("email_so_confirmation_details_html", distributor: @order.distributor.name)
= render 'spree/order_mailer/order_summary'
= render 'spree/order_mailer/payment'
= render 'spree/order_mailer/shipping'
= render 'spree/order_mailer/special_instructions'
= render 'spree/order_mailer/signoff'