Sha256: 2234288625bb6724e5db146d47f6ac100e3579e090555aa8e71232ac40be4840

Contents?: true

Size: 1.82 KB

Versions: 12

Compression:

Stored size: 1.82 KB

Contents

<%= render partial: "decidim/shared/filter_form_help", locals: { skip_to_id: "sortitions" } %>

<%= filter_form_for filter do |form| %>
  <div class="filters__section">
    <div class="filters__search">
      <div class="input-group">
        <%= form.search_field :search_text_cont, label: false, class: "input-group-field", placeholder: t(".search"), title: t(".search"), "aria-label": t(".search"), data: { disable_dynamic_change: true } %>
        <div class="input-group-button">
          <button type="submit" class="button" aria-controls="sortitions">
            <%= icon "magnifying-glass", aria_label: t(".search"), role: "img" %>
          </button>
        </div>
      </div>
    </div>
  </div>

  <% if current_participatory_space.categories.any? %>
    <%= form.categories_select :with_category,
                               current_participatory_space.categories,
                               {
                                 legend_title: t(".category"),
                                 disable_parents: false,
                                 label: "",
                                 include_blank: t(".category_prompt"),
                                 aria_label: t(".category")
                               },
                               "aria-label": t(".category"),
                               "aria-controls": "sortitions" %>
  <% end %>

  <%= form.collection_radio_buttons :with_any_state,
                                    [["all", t(".all")], ["active", t(".active")], ["cancelled", t(".cancelled")]],
                                    :first,
                                    :last,
                                    { legend_title: t(".state") },
                                    "aria-controls": "sortitions" %>

  <%= hidden_field_tag :order, order, id: nil, class: "order_filter" %>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-sortitions-0.27.9 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.27.8 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.27.7 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.27.6 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.27.5 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.27.4 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.27.3 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.27.2 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.27.1 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.27.0 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.27.0.rc2 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.27.0.rc1 app/views/decidim/sortitions/sortitions/_filters.html.erb