Extract interactive map form to a component

This commit is contained in:
Senén Rodero Rodríguez
2023-11-27 14:15:03 +01:00
committed by Javi Martín
parent 65c6189183
commit e7223ba865
3 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
class Admin::Settings::MapFormComponent < ApplicationComponent
end

View File

@@ -5,7 +5,7 @@
<p><%= t("admin.settings.index.map.help") %></p>
<%= render "map_form" %>
<%= render Admin::Settings::MapFormComponent.new %>
<% else %>
<div class="callout primary">
<%= t("admin.settings.index.map.how_to_enable") %>