can remove investment projects
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<% if @spending_proposals.present? %>
|
||||
<% @spending_proposals.each do |spending_proposal| %>
|
||||
$("#<%= dom_id(spending_proposal) %>_ballot").html('<%= j render("spending_proposals/ballot", spending_proposal: spending_proposal) %>');
|
||||
<% if @investments.present? %>
|
||||
<% @investments.each do |investment| %>
|
||||
$("#<%= dom_id(investment) %>_ballot").html('<%= j render("budgets/investments/ballot", investment: investment) %>');
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
$("#progress_bar").html('<%= j render("spending_proposals/progress_bar", ballot: @ballot) %>');
|
||||
$("#progress_bar").html('<%= j render("budgets/ballot/progress_bar", ballot: @ballot) %>');
|
||||
$("#sidebar").html('<%= j render("spending_proposals/sidebar") %>');
|
||||
$("#ballot").html('<%= j render("ballots/ballot") %>')
|
||||
$("#<%= dom_id(@spending_proposal) %>_ballot").html('<%= j render("spending_proposals/ballot", spending_proposal: @spending_proposal) %>');
|
||||
// $("#ballot").html('<%# j render("ballots/ballot") %>')
|
||||
$("#<%= dom_id(@investment) %>_ballot").html('<%= j render("budgets/investments/ballot", investment: @investment) %>');
|
||||
|
||||
<%= render 'refresh_ballots' %>
|
||||
|
||||
Reference in New Issue
Block a user