Moves ballot/_add and ballot/_remove inside _ballot
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
<div class="add in-favor">
|
||||
<p class="investment-project-amount">
|
||||
<%= format_price(@budget, investment.price) %>
|
||||
</p>
|
||||
|
||||
<% if @budget.balloting? %>
|
||||
<%= link_to budget_ballot_lines_url(investment_id: investment.id,
|
||||
investments_ids: @ballot.investment_ids),
|
||||
class: "button button-support small expanded",
|
||||
title: t('budget.investments.investment.support_title'),
|
||||
method: "post",
|
||||
remote: true do %>
|
||||
<%= t("budget.investments.investment.add") %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
@@ -1,18 +0,0 @@
|
||||
<div class="remove supported inline-block">
|
||||
<span class="icon-check-circle bounceIn animated"
|
||||
title="<%= t("budget.investments.investment.already_added") %>">
|
||||
</span>
|
||||
|
||||
<p class="investment-project-amount">
|
||||
<%= format_price(@budget, investment.price) %>
|
||||
</p>
|
||||
|
||||
<% if @budget.balloting? %>
|
||||
<%= link_to t('budgets.ballots.show.remove'),
|
||||
budget_ballot_line_path(id: investment.id,
|
||||
investments_ids: investment_ids),
|
||||
class: "delete small expanded",
|
||||
method: :delete,
|
||||
remote: true %>
|
||||
<% end %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user