Add Budget Investment winners filter on admin list view and controller

This commit is contained in:
Bertocq
2017-06-21 01:32:09 +02:00
parent 52d23462fe
commit 6aecb558cc
2 changed files with 5 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ class Admin::BudgetInvestmentsController < Admin::BaseController
feature_flag :budgets
has_filters(%w{valuation_open without_admin managed valuating valuation_finished
valuation_finished_feasible selected all},
valuation_finished_feasible selected winners all},
only: [:index, :toggle_selection])
before_action :load_budget

View File

@@ -12,6 +12,7 @@
<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_selection") %></th>
<th class="text-center"><%= t("admin.budget_investments.index.table_winner") %></th>
</tr>
</thead>
@@ -74,6 +75,9 @@
<% end %>
<% end %>
</td>
<td class="small text-center">
<%= investment.winner? ? t('shared.yes'): t('shared.no') %>
</td>
</tr>
<% end %>
</table>