Add missing specs from Maps on New, Edit and Show.

This commit is contained in:
taitus
2017-09-13 16:19:40 +02:00
committed by Senén Rodero Rodríguez
parent 7b54451491
commit 51c53b6f31
10 changed files with 278 additions and 8 deletions

View File

@@ -4,6 +4,9 @@
<%= 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 :id,
value: map_location.id,
id: map_location_input_id(parent_class, 'id') %>
<%= m_l_fields.hidden_field :latitude,
value: map_location.latitude,
id: map_location_input_id(parent_class, 'latitude') %>
@@ -13,4 +16,4 @@
<%= m_l_fields.hidden_field :zoom,
value: map_location.zoom,
id: map_location_input_id(parent_class, 'zoom') %>
<% end %>
<% end %>