mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
19 lines
585 B
Plaintext
19 lines
585 B
Plaintext
= f_form_for current_order,
|
|
html: {name: "checkout",
|
|
id: "checkout_form",
|
|
novalidate: true,
|
|
"ng-submit" => "purchase($event)"} do |f|
|
|
|
|
= inject_available_shipping_methods
|
|
= inject_available_payment_methods
|
|
|
|
= render partial: "checkout/details", locals: {f: f}
|
|
= render partial: "checkout/billing", locals: {f: f}
|
|
= render partial: "checkout/shipping", locals: {f: f}
|
|
= render partial: "checkout/payment", locals: {f: f}
|
|
%p
|
|
%button.button.primary{type: :submit,
|
|
"ng-disabled" => "checkout.$invalid"}
|
|
Place order now
|
|
/ {{ checkout.$valid }}
|