Extract participation processes tab partial to a component
This commit is contained in:
committed by
Javi Martín
parent
f8835debae
commit
684a830515
@@ -0,0 +1,7 @@
|
||||
<h2><%= t("admin.settings.index.participation_processes") %></h2>
|
||||
|
||||
<%= render Admin::Settings::TableComponent.new(setting_name: "feature", table_class: "featured-settings-table") do %>
|
||||
<% settings.each do |key| %>
|
||||
<%= render Admin::Settings::RowComponent.new(key, type: :feature, tab: "#tab-participation-processes") %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -0,0 +1,11 @@
|
||||
class Admin::Settings::ParticipationProcessesTabComponent < ApplicationComponent
|
||||
def settings
|
||||
%w[
|
||||
process.debates
|
||||
process.proposals
|
||||
process.polls
|
||||
process.budgets
|
||||
process.legislation
|
||||
]
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user