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 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

View File

@ -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,