L'aide au choix de ville, quand on propose un evt, est plus restrictif et rapide

This commit is contained in:
echarp 2014-07-02 11:02:36 +02:00
parent ebca7afa78
commit d802d1293d

View File

@ -39,8 +39,8 @@
= f.label Event.human_attribute_name :city
= f.text_field :city, required: true, size: 70, list: :cities
%datalist#cities
- City.all.each do |city|
%option= city.name
- City.connection.select_values('select distinct name from cities join events on name=city').each do |name|
%option= name
.field
= f.label Event.human_attribute_name :related_region
= f.select :region,