Sha256: fefcec159ad53ae75a656bce89637914382c406ba082ad66ab0a793081443d40

Contents?: true

Size: 907 Bytes

Versions: 6

Compression:

Stored size: 907 Bytes

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>

  <%= form.collection_radio_buttons :origin, [["all", t('.all')], ["official", t('.official')], ["citizens", t('.citizens')]], :first, :last, legend_title: t('.origin') %>

  <% if current_feature.categories.any? %>
    <%= form.categories_select :category_id, current_feature.categories, legend_title: t('.category'), disable_parents: false, label: false, prompt: t('.category_prompt') %>
  <% end %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-debates-0.10.1 app/views/decidim/debates/debates/_filters.html.erb
decidim-debates-0.10.0 app/views/decidim/debates/debates/_filters.html.erb
decidim-debates-0.9.3 app/views/decidim/debates/debates/_filters.html.erb
decidim-debates-0.9.2 app/views/decidim/debates/debates/_filters.html.erb
decidim-debates-0.9.1 app/views/decidim/debates/debates/_filters.html.erb
decidim-debates-0.9.0 app/views/decidim/debates/debates/_filters.html.erb