Require country code #2776

This commit is contained in:
Priit Tark 2015-07-21 19:09:50 +03:00
parent cc672a420b
commit 011c8db173

View file

@ -31,5 +31,6 @@
= f.label :country_code, t(:country) + '*' = f.label :country_code, t(:country) + '*'
.col-md-7 .col-md-7
- country_selected = f.object.persisted? ? f.object.country_code : 'EE' - country_selected = f.object.persisted? ? f.object.country_code : 'EE'
= f.select :country_code, SortedCountry.all_options(country_selected), = f.select(:country_code, SortedCountry.all_options(country_selected),
{ include_blank: true } { include_blank: true }, required: true)