Files
grecia/app/views/map_locations/_form_fields.html.erb
Senén Rodero Rodríguez 053a87eb2c Refactor map locations helper
2017-09-27 14:49:08 +02:00

16 lines
811 B
Plaintext

<%= form.label :map_location, label %>
<p class="help-text" id="tag-list-help-text"><%= help %></p>
<%= 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,
value: map_location.latitude,
id: map_location_input_id(parent_class, 'latitude') %>
<%= m_l_fields.hidden_field :longitude,
value: map_location.longitude,
id: map_location_input_id(parent_class, 'longitude') %>
<%= m_l_fields.hidden_field :zoom,
value: map_location.zoom,
id: map_location_input_id(parent_class, 'zoom') %>
<% end %>