Update behaviour on Place Order Now button so it is disabled but not hidden when unavailable

This commit is contained in:
summerscope
2014-06-05 16:20:14 +10:00
parent 7b1756fc98
commit 3ae1eb863d

View File

@@ -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 }}