mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Update behaviour on Place Order Now button so it is disabled but not hidden when unavailable
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
-#%pre
|
||||
-#{{ Order.order}}
|
||||
|
||||
.small-12.columns
|
||||
%div
|
||||
%h3.text-center.pad-top
|
||||
Checkout from
|
||||
= current_distributor.name
|
||||
@@ -20,7 +20,8 @@
|
||||
= render partial: "checkout/shipping", locals: {f: f}
|
||||
= render partial: "checkout/payment", locals: {f: f}
|
||||
%p
|
||||
%input.button.primary{type: :submit,
|
||||
value: "Place order now",
|
||||
"ng-click" => "purchase($event)",
|
||||
"ng-show" => "checkout.$valid"}
|
||||
%button.button.primary{type: :submit,
|
||||
"ng-click" => "purchase($event)",
|
||||
"ng-disabled" => "checkout.$invalid"}
|
||||
Place order now
|
||||
/ {{ checkout.$valid }}
|
||||
|
||||
Reference in New Issue
Block a user