Sha256: 12e83bb39985dce26ad4fdfaf5c96eb019d72bde060fc1fe2235fa7332906c09

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 KB

Contents

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

<%= 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="debates">
            <%= icon "magnifying-glass", aria_label: t(".search"), role: "img" %>
          </button>
        </div>
      </div>
    </div>
  </div>

  <%= form.collection_radio_buttons :origin, [["all", t(".all")], ["official", t(".official")], ["citizens", t(".citizens")]], :first, :last, { legend_title: t(".origin") }, "aria-controls": "debates" %>

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-debates-0.22.0 app/views/decidim/debates/debates/_filters.html.erb