can add investments to ballot
This commit is contained in:
14
app/views/budgets/ballot/_investment.html.erb
Normal file
14
app/views/budgets/ballot/_investment.html.erb
Normal file
@@ -0,0 +1,14 @@
|
||||
<li id="<%= dom_id(investment) %>">
|
||||
<%= link_to investment.title, investment %>
|
||||
<span><%= format_price(investment.price) %></span>
|
||||
|
||||
<% if @budget.balloting? %>
|
||||
<%= link_to ballot_line_path(id: investment.id),
|
||||
title: t('budgets.ballots.show.remove'),
|
||||
class: "remove-investment-project",
|
||||
method: :delete,
|
||||
remote: true do %>
|
||||
<span class="icon-x"></span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</li>
|
||||
Reference in New Issue
Block a user