Sha256: 7a128cdba2d538e5f7f7dccc1023394bbe236d1635a223c87b3051fa2e0584e9

Contents?: true

Size: 1.77 KB

Versions: 15

Compression:

Stored size: 1.77 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, label: false, class: "input-group-field", placeholder: t(".search"), title: 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 :category_id,
                               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 :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

15 entries across 15 versions & 1 rubygems

Version Path
decidim-sortitions-0.24.3 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.23.6 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.24.2 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.23.5 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.24.1 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.24.0 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.24.0.rc2 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.23.4 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.24.0.rc1 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.23.3 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.23.2 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.23.1 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.23.1.rc1 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.23.0 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.22.0 app/views/decidim/sortitions/sortitions/_filters.html.erb