Shows always show to valuators on investments table

This commit is contained in:
decabeza
2018-05-11 18:15:48 +02:00
parent 4fca07172c
commit 0858b3103a

View File

@@ -44,13 +44,8 @@
<th><%= t("admin.budget_investments.index.table_geozone") %></th> <th><%= t("admin.budget_investments.index.table_geozone") %></th>
<th><%= t("admin.budget_investments.index.table_feasibility") %></th> <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"><%= t("admin.budget_investments.index.table_valuation_finished") %></th>
<th class="text-center"> <th class="text-center"><%= t("admin.budget_investments.index.table_evaluation") %></th>
<% if params[:filter] == "under_valuation" %> <th class="text-center"><%= t("admin.budget_investments.index.table_selection") %></th>
<%= t("admin.budget_investments.index.table_evaluation") %>
<% else %>
<%= t("admin.budget_investments.index.table_selection") %>
<% end %>
</th>
<% if params[:filter] == "selected" %> <% if params[:filter] == "selected" %>
<th class="text-center"><%= t("admin.budget_investments.index.table_incompatible") %></th> <th class="text-center"><%= t("admin.budget_investments.index.table_incompatible") %></th>
<% end %> <% end %>
@@ -75,7 +70,7 @@
</td> </td>
<td class="small"> <td class="small">
<% if investment.administrator.present? %> <% if investment.administrator.present? %>
<span title="<%= t('admin.budget_investments.index.assigned_admin') %>"> <span title="<%= t("admin.budget_investments.index.assigned_admin") %>">
<%= investment.administrator.name %> <%= investment.administrator.name %>
</span> </span>
<% else %> <% else %>
@@ -101,14 +96,14 @@
<%= investment.valuation_finished? ? t("shared.yes"): t("shared.no") %> <%= investment.valuation_finished? ? t("shared.yes"): t("shared.no") %>
</td> </td>
<td class="small text-center"> <td class="small text-center">
<% if params[:filter] == "under_valuation" %>
<%= form_for [:admin, investment.budget, investment], remote: true do |f| %> <%= form_for [:admin, investment.budget, investment], remote: true do |f| %>
<%= f.check_box :visible_to_valuators, <%= f.check_box :visible_to_valuators,
label: false, label: false,
class: "js-submit-on-change", class: "js-submit-on-change",
id: "budget_investment_visible_to_valuators" %> id: "budget_investment_visible_to_valuators" %>
<% end %> <% end %>
<% else %> </td>
<td class="small text-center">
<% if investment.selected? %> <% if investment.selected? %>
<%= link_to_unless investment.budget.finished?, <%= link_to_unless investment.budget.finished?,
t("admin.budget_investments.index.selected"), t("admin.budget_investments.index.selected"),
@@ -136,7 +131,6 @@
remote: true, remote: true,
class: "button small hollow expanded" %> class: "button small hollow expanded" %>
<% end %> <% end %>
<% end %>
</td> </td>
<% if params[:filter] == "selected" %> <% if params[:filter] == "selected" %>
<td class="small text-center"> <td class="small text-center">