aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2018-01-02 10:37:35 +0100
committerAlban Peignier2018-01-02 10:37:35 +0100
commit3e9a93ea31f809aec1a80ff709c2362c4c2779fd (patch)
tree1c3134d9d80ffcea83e2e7abadcdd601810fb68f
parentcd08b86d56d484bb40caea38ee82c6c330f626bc (diff)
downloadchouette-core-3e9a93ea31f809aec1a80ff709c2362c4c2779fd.tar.bz2
Support blank in stop_areas#_form. Refs #5427
-rw-r--r--app/views/stop_areas/_form.html.slim2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/stop_areas/_form.html.slim b/app/views/stop_areas/_form.html.slim
index acf7b4024..6c1df253a 100644
--- a/app/views/stop_areas/_form.html.slim
+++ b/app/views/stop_areas/_form.html.slim
@@ -19,9 +19,9 @@
= f.input :coordinates, :input_html => {:title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.stop_area.coordinates")}, required: true
= f.input :street_name
- = f.input :country_code, as: :country, priority: ['FR', 'GB', 'DE', 'ES']
= f.input :zip_code, :input_html => {:title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.stop_area.zip_code")}
= f.input :city_name, required: format_restriction_for_locales(@referential) == '.hub', :input_html => {:title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.stop_area.city_name")}
+ = f.input :country_code, as: :country, priority: ['FR', 'GB', 'DE', 'ES'], :include_blank => true
.stop_areas.stop_area.general_info
h3 = t("stop_areas.stop_area.general")