L'aide au choix de ville, quand on propose un evt, est plus restrictif et rapide
This commit is contained in:
parent
ebca7afa78
commit
d802d1293d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user