Sha256: 589a4213352f99f767700b8e2f41680b82447231894c50619d1443b7407427d1

Contents?: true

Size: 967 Bytes

Versions: 5

Compression:

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

  <% if current_organization.scopes.any? %>
    <%= form.collection_check_boxes :scope_id, current_organization.scopes, lambda {|scope| scope.id.to_s}, :name, legend_title: t('.scopes') %>
  <% end %>

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

  <%= form.hidden_field :random_seed %>
<% end %>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
decidim-budgets-0.0.5 app/views/decidim/budgets/projects/_filters.html.erb
decidim-0.0.5 decidim-budgets/app/views/decidim/budgets/projects/_filters.html.erb
decidim-0.0.4 decidim-budgets/app/views/decidim/budgets/projects/_filters.html.erb
decidim-budgets-0.0.3 app/views/decidim/budgets/projects/_filters.html.erb
decidim-0.0.3 decidim-budgets/app/views/decidim/budgets/projects/_filters.html.erb