Using the block syntax to generate the label with a <span> tag inside isn't necessary after upgrading foundation_rails_helpers. Before the upgrade, we couldn't do so because the <span> tag was escaped.
26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
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 :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") %>
|
|
<%= 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") %>
|
|
|
|
<div>
|
|
<%= form.check_box :skip_map,
|
|
label: t("#{i18n_namespace}.form.map_skip_checkbox"),
|
|
class: "js-toggle-map" %>
|
|
</div>
|
|
<% end %>
|