adds filters: by geozone and without_admin

This commit is contained in:
Juanjo Bazán
2016-02-25 18:18:40 +01:00
parent e1aff00e5b
commit 0e1e0ce371
8 changed files with 81 additions and 10 deletions

View File

@@ -1,5 +1,16 @@
<h2><%= t("admin.spending_proposals.index.title") %></h2>
<div class="small-12 medium-4 column right">
<%= form_tag current_path_with_query_params(page: 1), method: :get, enforce_utf8: false do %>
<%= select_tag :geozone_id, options_for_select(geozone_select_options.unshift([t("geozones.none"), "all"]), params[:geozone_id]),
{ prompt: t("admin.spending_proposals.index.geozone_filter_all"),
label: false,
class: "js-submit-on-change"} %>
<% end %>
</div>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.spending_proposals.index" %>
<h3><%= page_entries_info @spending_proposals %></h3>
<table>