Add Budget Investment winners filter on admin list view and controller
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user