mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
26 lines
787 B
Plaintext
26 lines
787 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
|
|
:javascript
|
|
angular.module('Darkswarm').value('order', #{render "checkout/order"})
|
|
|
|
%div
|
|
/ %h3.text-center.pad-top
|
|
/ Checkout from
|
|
/ = current_distributor.name
|
|
|
|
= 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 }}
|