Extract interactive map form to a component
This commit is contained in:
committed by
Javi Martín
parent
65c6189183
commit
e7223ba865
2
app/components/admin/settings/map_form_component.rb
Normal file
2
app/components/admin/settings/map_form_component.rb
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
class Admin::Settings::MapFormComponent < ApplicationComponent
|
||||||
|
end
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<p><%= t("admin.settings.index.map.help") %></p>
|
<p><%= t("admin.settings.index.map.help") %></p>
|
||||||
|
|
||||||
<%= render "map_form" %>
|
<%= render Admin::Settings::MapFormComponent.new %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="callout primary">
|
<div class="callout primary">
|
||||||
<%= t("admin.settings.index.map.how_to_enable") %>
|
<%= t("admin.settings.index.map.how_to_enable") %>
|
||||||
|
|||||||
Reference in New Issue
Block a user