mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
23 lines
769 B
Plaintext
23 lines
769 B
Plaintext
- content_for :injection_data do
|
|
= inject_available_shipping_methods
|
|
= inject_available_payment_methods
|
|
= inject_saved_credit_cards
|
|
|
|
= form_for current_order,
|
|
url: order_path(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?
|
|
= render_terms_and_conditions
|
|
%p
|
|
%button.button.primary{ type: :submit, ng: { disabled: "terms_and_conditions_accepted == false || platform_tos_accepted == false" } }
|
|
= t :checkout_send
|
|
/ {{ checkout.$valid }}
|