Refactor map locations helper

This commit is contained in:
Senén Rodero Rodríguez
2017-08-08 12:14:06 +02:00
parent 5815389cb8
commit 053a87eb2c
2 changed files with 22 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
<%= form.label :map_location, label %>
<p class="help-text" id="tag-list-help-text"><%= help %></p>
<%= render_map(map_location, parent_class, true, remove_marker_label) %>
<%= render_map(map_location, parent_class, editable = true, remove_marker_label) %>
<%= form.fields_for :map_location, map_location do |m_l_fields| %>
<%= m_l_fields.hidden_field :latitude,