Add content to the Remote Census Configuration tab

- Render remote census configuration content on settings index.
 - Update type method from Setting
   On Admin::SettingsController#index we are using 'all_settings' to
   group all settings by 'type' method.
   'type' method return the first part of key when split by '.'
   To allow use by example: all_settings["remote_census.general"]
   and recover only settings related with this key we have added new
   'elsif' on 'type' method.
This commit is contained in:
taitus
2019-04-10 14:04:56 +02:00
committed by Javi Martín
parent 3df856ff7e
commit 637675a1f5
5 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<h2><%= t("admin.settings.index.remote_census.title") %></h2>
<%= render "settings_table", settings: @remote_census_general_settings %>
<%= render "settings_table", settings: @remote_census_request_settings %>
<%= render "settings_table", settings: @remote_census_response_settings %>

View File

@@ -25,4 +25,8 @@
<div class="tabs-panel" id="tab-proposals">
<%= render "proposals_dashboard" %>
</div>
<div class="tabs-panel" id="tab-remote-census-configuration">
<%= render "remote_census_configuration_tab" %>
</div>
</div>