Requiring a state in checkout

This commit is contained in:
Rob H
2014-08-27 16:59:26 +10:00
parent 400f2ea9b9
commit 7124dc57fd

View File

@@ -19,13 +19,13 @@
{{ summary() | printArray }}
.small-4.medium-2.columns.text-right
%span.accordion-up
%em
%em
%small Hide
%i.ofn-i_053-point-up
%i.ofn-i_053-point-up
%span.accordion-down
%em
%em
%small Expand
%i.ofn-i_052-point-down
%i.ofn-i_052-point-down
= f.fields_for :bill_address, @order.bill_address do |ba|
.row
@@ -40,7 +40,7 @@
.small-6.columns
= ba.select :state_id, @order.billing_address.country.states.map{|c|[c.name, c.id]}, {include_blank: false},
"ng-model" => "order.bill_address.state_id"
"ng-model" => "order.bill_address.state_id", required: true
.row
.small-6.columns
= validated_input "Postcode", "order.bill_address.zipcode"