improves styles for budget investments advanced filters
This commit is contained in:
@@ -1,27 +1,44 @@
|
||||
<div id="advanced-filters" class="callout primary">
|
||||
<%= link_to "#advanced_filters_content",
|
||||
data: {toggle: "advanced_filters"},
|
||||
class: "advanced-filters float-right" do %>
|
||||
<%= t("admin.budget_investments.index.advanced_filters") %>
|
||||
<% end %>
|
||||
|
||||
<div id="advanced_filters" class="row expanded advanced-filters-content hide" data-toggler=".hide">
|
||||
<%= form_tag(admin_budget_budget_investments_path(budget: @budget,
|
||||
filter: params[:filter],
|
||||
second_filter: params[:second_filter],
|
||||
max_per_heading: params[:max_per_heading],
|
||||
page: 1), method: :get, remote: true, enforce_utf8: false) do %>
|
||||
<div class="small-12 medium-8 large-10 column">
|
||||
<span class="filter">
|
||||
<%= check_box_tag :second_filter, "feasible" %>
|
||||
<%= t("#{i18n_namespace}.filters.feasible") %>
|
||||
</span>
|
||||
|
||||
<%= check_box_tag :second_filter, "feasible" %>
|
||||
<%= t("#{i18n_namespace}.filters.feasible") %>
|
||||
<span class="filter">
|
||||
<%= check_box_tag :second_filter, "selected" %>
|
||||
<%= t("#{i18n_namespace}.filters.selected") %>
|
||||
</span>
|
||||
|
||||
<%= check_box_tag :second_filter, "selected" %>
|
||||
<%= t("#{i18n_namespace}.filters.selected") %>
|
||||
<span class="filter">
|
||||
<%= check_box_tag :second_filter, "undecided" %>
|
||||
<%= t("#{i18n_namespace}.filters.undecided") %>
|
||||
</span>
|
||||
|
||||
<%= check_box_tag :second_filter, "undecided" %>
|
||||
<%= t("#{i18n_namespace}.filters.undecided") %>
|
||||
<span class="filter">
|
||||
<%= check_box_tag :second_filter, "unfeasible" %>
|
||||
<%= t("#{i18n_namespace}.filters.unfeasible") %>
|
||||
</span>
|
||||
|
||||
<%= check_box_tag :second_filter, "unfeasible" %>
|
||||
<%= t("#{i18n_namespace}.filters.unfeasible") %>
|
||||
|
||||
<div class="large-1">
|
||||
<%= text_field_tag :max_per_heading %>
|
||||
<%= t("#{i18n_namespace}.filters.max_per_heading") %>
|
||||
<span class="filter">
|
||||
<strong><%= t("#{i18n_namespace}.filters.max_per_heading") %></strong>
|
||||
<%= text_field_tag :max_per_heading %>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<%= submit_tag t("#{i18n_namespace}.filters.button"), class: "button small float-right" %>
|
||||
<div class="small-12 medium-4 large-2 column">
|
||||
<%= submit_tag t("#{i18n_namespace}.filters.button"), class: "button expanded" %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -1,40 +1,38 @@
|
||||
<h2 class="inline-block"><%= @budget.name %> - <%= t("admin.budget_investments.index.title") %></h2>
|
||||
|
||||
<div class="row margin">
|
||||
<%= form_tag(admin_budget_budget_investments_path(budget: @budget), method: :get, enforce_utf8: false) do %>
|
||||
<div class="small-12 medium-3 column">
|
||||
<%= select_tag :administrator_id,
|
||||
options_for_select(admin_select_options, params[:administrator_id]),
|
||||
{ prompt: t("admin.budget_investments.index.administrator_filter_all"),
|
||||
label: false,
|
||||
class: "js-submit-on-change" } %>
|
||||
</div>
|
||||
<%= form_tag(admin_budget_budget_investments_path(budget: @budget), method: :get, enforce_utf8: false) do %>
|
||||
<div class="small-12 medium-3 column">
|
||||
<%= select_tag :administrator_id,
|
||||
options_for_select(admin_select_options, params[:administrator_id]),
|
||||
{ prompt: t("admin.budget_investments.index.administrator_filter_all"),
|
||||
label: false,
|
||||
class: "js-submit-on-change" } %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-3 column">
|
||||
<%= select_tag :valuator_id,
|
||||
options_for_select(valuator_select_options, params[:valuator_id]),
|
||||
{ prompt: t("admin.budget_investments.index.valuator_filter_all"),
|
||||
label: false,
|
||||
class: "js-submit-on-change" } %>
|
||||
</div>
|
||||
<div class="small-12 medium-3 column">
|
||||
<%= select_tag :valuator_id,
|
||||
options_for_select(valuator_select_options, params[:valuator_id]),
|
||||
{ prompt: t("admin.budget_investments.index.valuator_filter_all"),
|
||||
label: false,
|
||||
class: "js-submit-on-change" } %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-3 column">
|
||||
<%= select_tag :heading_id,
|
||||
options_for_select(budget_heading_select_options(@budget), params[:heading_id]),
|
||||
{ prompt: t("admin.budget_investments.index.heading_filter_all"),
|
||||
label: false,
|
||||
class: "js-submit-on-change" } %>
|
||||
</div>
|
||||
<div class="small-12 medium-3 column">
|
||||
<%= select_tag :heading_id,
|
||||
options_for_select(budget_heading_select_options(@budget), params[:heading_id]),
|
||||
{ prompt: t("admin.budget_investments.index.heading_filter_all"),
|
||||
label: false,
|
||||
class: "js-submit-on-change" } %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-3 column">
|
||||
<%= select_tag :tag_name,
|
||||
options_for_select(investment_tags_select_options, params[:tag_name]),
|
||||
{ prompt: t("admin.budget_investments.index.tags_filter_all"),
|
||||
label: false,
|
||||
class: "js-submit-on-change" } %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="small-12 medium-3 column">
|
||||
<%= select_tag :tag_name,
|
||||
options_for_select(investment_tags_select_options, params[:tag_name]),
|
||||
{ prompt: t("admin.budget_investments.index.tags_filter_all"),
|
||||
label: false,
|
||||
class: "js-submit-on-change" } %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= render "advanced_filters", i18n_namespace: "admin.budget_investments.index" %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user