Extract proposals dashboard tab partial to a component
This commit is contained in:
committed by
Javi Martín
parent
75180de8e6
commit
f32d7edcf3
@@ -1,9 +0,0 @@
|
||||
<h2><%= t("admin.settings.index.dashboard.title") %></h2>
|
||||
|
||||
<%= render Admin::Settings::TableComponent.new(setting_name: "setting") do %>
|
||||
<% %w[proposals.successful_proposal_id proposals.poll_short_title proposals.poll_description
|
||||
proposals.poll_link proposals.email_short_title proposals.email_description
|
||||
proposals.poster_short_title proposals.poster_description].each do |key| %>
|
||||
<%= render Admin::Settings::RowComponent.new(key, tab: "#tab-proposals") %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
|
||||
<div class="tabs-panel" id="tab-proposals">
|
||||
<%= render "proposals_dashboard" %>
|
||||
<%= render Admin::Settings::ProposalsDashboardTabComponent.new %>
|
||||
</div>
|
||||
|
||||
<div class="tabs-panel" id="tab-remote-census-configuration">
|
||||
|
||||
Reference in New Issue
Block a user