Add setting_name param to others calls to _setting_table partial
In these cases "setting" is the value expected by the new helper method for everything to continue rendering in the usual way. Note: All the new calls to _setting_table partial will need add setting_name param.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<h2><%= t("admin.settings.index.title") %></h2>
|
||||
|
||||
<%= render "settings_table", settings: @configuration_settings %>
|
||||
<%= render "settings_table", settings: @configuration_settings, setting_name: "setting" %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<% if feature?(:map) %>
|
||||
<h2><%= t("admin.settings.index.map.title") %></h2>
|
||||
|
||||
<%= render "settings_table", settings: @map_configuration_settings %>
|
||||
<%= render "settings_table", settings: @map_configuration_settings, setting_name: "setting" %>
|
||||
|
||||
<p><%= t("admin.settings.index.map.help") %></p>
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<h2><%= t("admin.settings.index.dashboard.title") %></h2>
|
||||
|
||||
<%= render "settings_table", settings: @proposals_settings %>
|
||||
<%= render "settings_table", settings: @proposals_settings, setting_name: "setting" %> %>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<h2 class="inline-block"><%= t("admin.site_customization.content_blocks.index.title") %></h2>
|
||||
|
||||
<%= render "admin/settings/settings_table", settings: @html_settings %>
|
||||
<%= render "admin/settings/settings_table", settings: @html_settings, setting_name: "setting" %>
|
||||
|
||||
<h3><%= t("admin.site_customization.content_blocks.information") %></h3>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user