Modified the investments partial to fit the new budget_investments UI: valuating filter name has changed to under_valuation.

Modified the specs to fit the new UI for budget_investments
This commit is contained in:
iagirre
2018-01-24 14:40:42 +01:00
parent b8cc10d218
commit e2a91c6cc8
2 changed files with 15 additions and 11 deletions

View File

@@ -28,12 +28,13 @@
<th><%= t("admin.budget_investments.index.table_feasibility") %></th>
<th class="text-center"><%= t("admin.budget_investments.index.table_valuation_finished") %></th>
<th class="text-center">
<% if params[:filter] == "valuating" %>
<% if params[:filter] == "under_valuation" %>
<%= t("admin.budget_investments.index.table_evaluation") %>
<% else %>
<%= t("admin.budget_investments.index.table_selection") %>
<% end %>
</th>
<% if params[:filter] == "selected" %>
<th class="text-center"><%= t("admin.budget_investments.index.table_incompatible") %></th>
<% end %>
</tr>
@@ -82,7 +83,7 @@
<%= investment.valuation_finished? ? t("shared.yes"): t("shared.no") %>
</td>
<td class="small text-center">
<% if params[:filter] == "valuating" %>
<% if params[:filter] == "under_valuation" %>
<%= form_for [:admin, investment.budget, investment], remote: true do |f| %>
<%= f.check_box :visible_to_valuators,
label: false,