= semantic_form_for @location do |f|
  = f.inputs do
    = f.input :category
    = f.input :loc_json, as: :hidden
  = render partial: "shared/edit_map", locals: {thing: @location}
  = f.buttons
= semantic_form_for @location do |f|
  = f.inputs do
    = f.input :category
    = f.input :loc_json, as: :hidden
  = render partial: "shared/edit_map", locals: {thing: @location}
  = f.buttons

= render partial: "shared/map_search", locals: {map_id: "map"}

Add map search box to the user locations map form
Add map search box to the user locations map form
