Une liste de villes est proposée quand on crée un événement
This commit is contained in:
parent
ac57abeefe
commit
6029301415
@ -125,6 +125,7 @@ main
|
|||||||
margin: 3px 0
|
margin: 3px 0
|
||||||
border: 1px solid #868686
|
border: 1px solid #868686
|
||||||
font-family: georgia, serif
|
font-family: georgia, serif
|
||||||
|
background-color: white
|
||||||
@include border-radius(0.1em)
|
@include border-radius(0.1em)
|
||||||
&:focus
|
&:focus
|
||||||
background-color: #F0F8FF
|
background-color: #F0F8FF
|
||||||
|
@ -37,7 +37,10 @@
|
|||||||
|
|
||||||
.field
|
.field
|
||||||
= f.label Event.human_attribute_name :city
|
= f.label Event.human_attribute_name :city
|
||||||
= f.text_field :city, required: true, size: 70
|
= f.text_field :city, required: true, size: 70, list: :cities
|
||||||
|
%datalist#cities
|
||||||
|
- City.all.each do |city|
|
||||||
|
%option= city.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