Sha256: 0bb243d7d5df7c47bb615473d30ccb0a7edd169c9c4607da331ef45b95d9b416

Contents?: true

Size: 1.27 KB

Versions: 29

Compression:

Stored size: 1.27 KB

Contents

<%= 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") %>
        <div class="input-group-button">
          <button type="submit" class="button button--muted">
            <%= icon "magnifying-glass", aria_label: t(".search") %>
          </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: false,
                               prompt: t(".category_prompt") %>
  <% end %>

  <%= form.collection_radio_buttons :state,
                                    [["all", t(".all")], ["active", t(".active")], ["cancelled", t(".cancelled")]],
                                    :first,
                                    :last,
                                    legend_title: t(".state") %>

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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
decidim-sortitions-0.12.2 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.13.0 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.12.1 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.13.0.pre1 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.12.0 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.11.2 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.12.0.pre app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.11.1 app/views/decidim/sortitions/sortitions/_filters.html.erb
decidim-sortitions-0.11.0.pre1 app/views/decidim/sortitions/sortitions/_filters.html.erb