Une liste de villes est proposée quand on crée un événement

This commit is contained in:
echarp 2014-07-01 21:25:48 +02:00
parent ac57abeefe
commit 6029301415
2 changed files with 5 additions and 1 deletions

View File

@ -125,6 +125,7 @@ main
margin: 3px 0
border: 1px solid #868686
font-family: georgia, serif
background-color: white
@include border-radius(0.1em)
&:focus
background-color: #F0F8FF

View File

@ -37,7 +37,10 @@
.field
= 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
= f.label Event.human_attribute_name :related_region
= f.select :region,