Add sorting options for Admin::BudgetInvestments (#2336)

This commit is contained in:
Angel Perez
2018-01-24 12:54:08 -04:00
parent d30d2b0dd8
commit e04dc5b8f2
7 changed files with 65 additions and 1 deletions

View File

@@ -1,3 +1,12 @@
<%= form_tag(admin_budget_budget_investments_path(budget: @budget), method: :get) do %>
<div class="small-12 medium-3 column">
<%= select_tag :sort_by, options_for_select(budget_investments_sorting_options, params[:sort_by]),
{ prompt: t("admin.budget_investments.index.sort_by.placeholder"),
label: false,
class: "js-submit-on-change" } %>
</div>
<% end %>
<%= link_to t("admin.budget_investments.index.download_current_selection"),
admin_budget_budget_investments_path(csv_params),
class: "float-right small" %>