Moves ballot/_add and ballot/_remove inside _ballot

This commit is contained in:
kikito
2016-12-05 17:32:37 +01:00
parent 4b7cf22b18
commit e1fcaf66ef
4 changed files with 47 additions and 45 deletions

View File

@@ -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>

View File

@@ -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>