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.label Event.human_attribute_name :city
|
||||||
= f.text_field :city, required: true, size: 70, list: :cities
|
= f.text_field :city, required: true, size: 70, list: :cities
|
||||||
%datalist#cities
|
%datalist#cities
|
||||||
- City.all.each do |city|
|
- City.connection.select_values('select distinct name from cities join events on name=city').each do |name|
|
||||||
%option= city.name
|
%option= name
|
||||||
.field
|
.field
|
||||||
= f.label Event.human_attribute_name :related_region
|
= f.label Event.human_attribute_name :related_region
|
||||||
= f.select :region,
|
= f.select :region,
|
||||||
|
Loading…
Reference in New Issue
Block a user