diff options
| author | Xinhui | 2017-12-28 11:40:27 +0100 |
|---|---|---|
| committer | Xinhui | 2017-12-28 11:41:15 +0100 |
| commit | e6715407f59a79473d38048cb22bb025daa68753 (patch) | |
| tree | 5157240018329467033dd3629825f482853d4341 | |
| parent | 17f1a9a7cc9e403f85ddbcdf63e7c551a85dd505 (diff) | |
| download | chouette-core-e6715407f59a79473d38048cb22bb025daa68753.tar.bz2 | |
StopArea form restaure country_code field
Refs #5427
| -rw-r--r-- | app/views/stop_areas/_form.html.slim | 2 |
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 e44680499..acf7b4024 100644 --- a/app/views/stop_areas/_form.html.slim +++ b/app/views/stop_areas/_form.html.slim @@ -19,7 +19,7 @@ = 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, required: format_restriction_for_locales(@referential) == '.hub' + = 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")} |
