Commit 01148709 authored by Alexandre Friquet's avatar Alexandre Friquet

Adds link to ban map on forms: refs #12.

parent 18d9d6b3
......@@ -20,6 +20,12 @@ module MapHelper
end
end
def ban_data_gouv_fr_map
textilize_without_paragraph 'Pour vous aider à préciser l\'adresse : "(externe)carte interactive":https://adresse.data.gouv.fr/map'
end
private
def update_icon_settings(markers)
markers.each do |marker|
marker[:icon] = icon_settings(marker[:icon])
......
......@@ -35,7 +35,7 @@
<%= f.input :begin_at, as: :date_picker %>
<%= f.input :end_at, as: :date_picker %>
<%= f.association :event_type, prompt: "Choisir un type d'évenement" %>
<%= f.input :location %>
<%= f.input :location, hint: ban_data_gouv_fr_map %>
<%= f.input :price, input_html: {class: "small_string"} %>
</div>
<div id="event_activities">
......
......@@ -61,7 +61,7 @@
<div id="information">
<%= f.input :description %>
<%= f.input :address %>
<%= f.input :address, hint: ban_data_gouv_fr_map %>
<%= localized_status %>
<%= f.input :website %>
<%= f.input :join_us %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment