Extract map configuration tab partial to a component
This commit is contained in:
committed by
Javi Martín
parent
6876f080a2
commit
f56dc654f3
@@ -1,18 +0,0 @@
|
||||
<% if feature?(:map) %>
|
||||
<h2><%= t("admin.settings.index.map.title") %></h2>
|
||||
|
||||
<% tab = "#tab-map-configuration" %>
|
||||
<%= render Admin::Settings::TableComponent.new(setting_name: "setting") do %>
|
||||
<% %w[map.latitude map.longitude map.zoom].each do |key| %>
|
||||
<%= render Admin::Settings::RowComponent.new(key, tab: tab) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<p><%= t("admin.settings.index.map.help") %></p>
|
||||
|
||||
<%= render Admin::Settings::MapFormComponent.new(tab: tab) %>
|
||||
<% else %>
|
||||
<div class="callout primary">
|
||||
<%= t("admin.settings.index.map.how_to_enable") %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
|
||||
<div class="tabs-panel" id="tab-map-configuration">
|
||||
<%= render "map_configuration_tab" %>
|
||||
<%= render Admin::Settings::MapTabComponent.new %>
|
||||
</div>
|
||||
|
||||
<div class="tabs-panel" id="tab-images-and-documents">
|
||||
|
||||
Reference in New Issue
Block a user