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:
taitus
2019-04-10 14:33:47 +02:00
committed by Javi Martín
parent 12b6b1df05
commit 37f20198da
4 changed files with 4 additions and 4 deletions

View File

@@ -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" %>

View File

@@ -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>

View File

@@ -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" %> %>

View File

@@ -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>