Sha256: c3313baa5915107940d46fe92b9a9c3b579b4530f9d55c47aefdb8cf5a2443b5

Contents?: true

Size: 1.29 KB

Versions: 18

Compression:

Stored size: 1.29 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>

  <%= form.collection_radio_buttons :state, collaborative_drafts_states_collection, :first, :last, legend_title: t(".state") %>

  <% if linked_classes_for(Decidim::Proposals::CollaborativeDraft).any? %>
    <%= form.collection_radio_buttons :related_to, linked_classes_filter_values_for(Decidim::Proposals::CollaborativeDraft), :first, :last, legend_title: t(".related_to") %>
  <% end %>

  <% if current_participatory_space.has_subscopes? %>
    <%= scopes_picker_filter form, :scope_id %>
  <% end %>

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
decidim-proposals-0.20.1 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.20.0 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.19.1 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.18.1 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.19.0 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.17.2 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.18.0 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.17.1 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.16.1 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.17.0 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.16.0 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.15.2 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.15.1 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.15.0 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.14.4 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.14.3 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.14.2 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb
decidim-proposals-0.14.1 app/views/decidim/proposals/collaborative_drafts/_filters.html.erb