Skip to content

Commit

Permalink
Fix form markup
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Aug 21, 2024
1 parent d24972b commit 4572bd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/controllers/herbaria/_form.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end
model: @herbarium, id: "herbarium_form",
data: {
controller: "map", map_open: false,
map_autocompleter_outlet: "herbarium_location_autocompleter",
map_autocompleter_outlet: "#herbarium_location_autocompleter",
# action: "autocompleter:hiddenIdDataChanged@window->map#showBox"
}
) do |f| %>
Expand Down Expand Up @@ -77,8 +77,8 @@ end
label: [tag.span("#{:LOCATION.l}:", class: "unconstrained-label"),
tag.span("#{:form_observations_create_locality.l}:",
class: "create-label")].safe_join(" "),
wrap_data: { map_target: "autocompleter" },
wrap_id: "herbarium_location_autocompleter",
controller_data: { map_target: "autocompleter" },
controller_id: "herbarium_location_autocompleter",
between: :optional,
append:,
hidden_data: { map_target: "locationId" },
Expand Down

0 comments on commit 4572bd4

Please sign in to comment.