Files
openfoodnetwork/app/views/checkout/_form.html.haml
2019-07-10 17:14:08 +01:00

21 lines
609 B
Plaintext

- content_for :injection_data do
= inject_available_shipping_methods
= inject_available_payment_methods
= inject_saved_credit_cards
= f_form_for current_order,
html: {name: "checkout",
id: "checkout_form",
novalidate: true,
"ng-submit" => "purchase($event, checkout)"} do |f|
= render "checkout/details", f: f
= render "checkout/billing", f: f
= render "checkout/shipping", f: f
= render "checkout/payment", f: f
= render "checkout/already_ordered", f: f if show_bought_items?
%p
%button.button.primary{type: :submit}
= t :checkout_send
/ {{ checkout.$valid }}