Sha256: 53a5aac95883e55375c633c6a50f781460f98c1aaafe1b4a82bfb0b7ef97f7b1

Contents?: true

Size: 1.2 KB

Versions: 4

Compression:

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

  <% unless @forced_past_meetings %>
    <%= form.collection_radio_buttons :date, [["upcoming", t(".upcoming")], ["past", t(".past")]], :first, :last, legend_title: t(".date") %>
  <% end %>

  <% if current_participatory_process.has_subscopes? %>
    <%= form.scopes_select :scope_id, legend_title: t(".scopes"), label: false, prompt: t('.scope_prompt'), remote_path: decidim.scopes_search_path(root: current_participatory_process.scope, include_root: true), multiple: true %>
  <% end %>

  <% 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

4 entries across 4 versions & 2 rubygems

Version Path
decidim-meetings-0.5.1 app/views/decidim/meetings/meetings/_filters.html.erb
decidim-0.5.1 decidim-meetings/app/views/decidim/meetings/meetings/_filters.html.erb
decidim-meetings-0.5.0 app/views/decidim/meetings/meetings/_filters.html.erb
decidim-0.5.0 decidim-meetings/app/views/decidim/meetings/meetings/_filters.html.erb