Sha256: 719f9b7758f0277f739a9bd934d0b479b71bbd4efafe32655a8098456190519f

Contents?: true

Size: 1.7 KB

Versions: 10

Compression:

Stored size: 1.7 KB

Contents

<%= initiatives_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,
                                    [["open", t(".open")], ["closed", t(".closed")]],
                                    :first,
                                    :last,
                                    legend_title: t(".state") %>

  <% if current_user %>
    <%= form.collection_radio_buttons :author,
                                    [["any", t(".any")], ["myself", t(".myself")]],
                                    :first,
                                    :last,
                                    legend_title: t(".author") %>
  <% end %>

  <div class="filters__section">
    <fieldset>
      <legend><h6 class="heading6"><%= t ".type" %></h6></legend>
      <%= form.initiative_types_select :type,
                                   legend_title: t(".type"),
                                   label: false,
                                   prompt: t(".type_prompt"),
                                   remote_path: initiative_types_search_path,
                                   multiple: true %>
    </fieldset>
  </div>

  <%= scopes_picker_field form, :scope_id, root: true %>

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

Version data entries

10 entries across 10 versions & 1 rubygems

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