Sha256: f4707f0c03585d52563f9cdbb215f6f193a135ce148334d2e7bc7703244741a3

Contents?: true

Size: 1016 Bytes

Versions: 4

Compression:

Stored size: 1016 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_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(include_root: 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 %>

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

Version data entries

4 entries across 4 versions & 2 rubygems

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