Fix map settings redirection
This commit is contained in:
committed by
Javi Martín
parent
cb91a7421d
commit
91c3bde36b
@@ -20,6 +20,7 @@
|
||||
<%= hidden_field_tag :latitude, Setting["map.latitude"] %>
|
||||
<%= hidden_field_tag :longitude, Setting["map.longitude"] %>
|
||||
<%= hidden_field_tag :zoom, Setting["map.zoom"] %>
|
||||
<%= hidden_field_tag :tab, tab if tab %>
|
||||
|
||||
<div class="small-12 medium-6 large-4 margin-top">
|
||||
<%= submit_tag t("admin.settings.index.map.form.submit"),
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
class Admin::Settings::MapFormComponent < ApplicationComponent
|
||||
attr_reader :tab
|
||||
|
||||
def initialize(tab: nil)
|
||||
@tab = tab
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user