Files
openfoodnetwork/app/views/split_checkout/_form.html.haml
Jean-Baptiste Bellet 57d7191332 Add new step, second one: payment method
Add payment method form

- select the right form depending on the path
2021-07-26 15:47:36 +02:00

13 lines
455 B
Plaintext

- content_for :injection_data do
= inject_available_shipping_methods
= inject_available_payment_methods
= inject_saved_credit_cards
= form_with url: update_checkout_path, model: @order, method: :put do |f|
%div.checkout-step.medium-6
- if current_page?(checkout_your_details_path)
= render 'split_checkout/your_details', f: f
- elsif current_page?(checkout_payment_method_path)
= render "split_checkout/payment_method", f: f