adds index/show/voting to management for sps
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<%= render partial: 'spending_proposals/spending_proposal', locals: {spending_proposal: spending_proposal} %>
|
||||
2
app/views/management/spending_proposals/_votes.html.erb
Normal file
2
app/views/management/spending_proposals/_votes.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
<%= render 'spending_proposals/votes',
|
||||
{ spending_proposal: spending_proposal, vote_url: vote_management_spending_proposal_path(spending_proposal, value: 'yes') } %>
|
||||
22
app/views/management/spending_proposals/index.html.erb
Normal file
22
app/views/management/spending_proposals/index.html.erb
Normal file
@@ -0,0 +1,22 @@
|
||||
<main>
|
||||
<%= render 'admin/shared/spending_proposal_search', url: management_spending_proposals_path %>
|
||||
|
||||
<div class="wrap row">
|
||||
<div id="investment-projects" class="investment-projects-list small-12 medium-9 column">
|
||||
|
||||
<div class="small-12 search-results">
|
||||
<%= content_tag(:h2, t("spending_proposals.index.unfeasible")) if params[:unfeasible].present? %>
|
||||
<%= content_tag(:h2, t("spending_proposals.index.by_geozone", geozone: @geozone_name)) if @geozone_name.present? %>
|
||||
<% if params[:search].present? %>
|
||||
<h2>
|
||||
<%= page_entries_info @spending_proposals %>
|
||||
<%= t("spending_proposals.index.search_results", count: @spending_proposals.size, search_term: params[:search]) %>
|
||||
</h2>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= render @spending_proposals %>
|
||||
<%= paginate @spending_proposals %>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
1
app/views/management/spending_proposals/vote.js.erb
Normal file
1
app/views/management/spending_proposals/vote.js.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= render template: 'spending_proposals/vote' %>
|
||||
Reference in New Issue
Block a user