Sha256: b229b7496a8b735a54c2269f4990344bd3906b69f72894717df0cf5bb31b4833

Contents?: true

Size: 1.53 KB

Versions: 30

Compression:

Stored size: 1.53 KB

Contents

<%= turbo_frame_tag "stored_filters" do %>
  <% if flash.alert %>
    <p class="refine-criterion-error">
      <%= flash.alert %>
    </p>
  <% end %>

  <%= content_tag :div, class: "refine-stored-filter-search-container" do %>
    <%= form_with(
        model: @refine_filter_builder,
        url: find_refine_stored_filters_path,
        method: :post,
        class: "refine-stored-filter-search-form") do |form| %>
      <!-- Saved filter selector -->
        <%= form.hidden_field :filter_class %>
        <%= form.hidden_field :client_id %>
        <%= tag.div class: 'refine-stored-filter-search-selector-container', data: {
          controller: 'fields--super-select',
          fields__super_select_enable_search_value: 'true'
        } do %>
          <select
            data-fields--super-select-target="select"
            name="id"
          >
            <option disabled selected value>&mdash; <%= t("refine.stored_filters.select_saved_filter") %> &mdash;</option>
            <% @stored_filters.each do |filter| %>
              <option
                value="<%= filter.id %>"
              >
                <%= filter.name %>
              </option>
            <% end %>
          </select>
        <% end %>
        <%= link_to t('global.buttons.back'), stored_filters_refine_blueprint_path(@refine_filter_builder.to_params), class: "refine-stored-filter-search-button-cancel"%>
        <%= button_tag t('global.buttons.choose_filter'), type: "submit", class: "refine-stored-filter-search-button-submit" %>
      <% end %>
    <% end %>
<% end%>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
refine-rails-2.12.0 app/views/refine/stored_filters/index.html.erb
refine-rails-2.11.12 app/views/refine/stored_filters/index.html.erb
refine-rails-2.11.11 app/views/refine/stored_filters/index.html.erb
refine-rails-2.11.10 app/views/refine/stored_filters/index.html.erb
refine-rails-2.11.9 app/views/refine/stored_filters/index.html.erb
refine-rails-2.11.8 app/views/refine/stored_filters/index.html.erb
refine-rails-2.11.6 app/views/refine/stored_filters/index.html.erb
refine-rails-2.11.5 app/views/refine/stored_filters/index.html.erb
refine-rails-2.11.4 app/views/refine/stored_filters/index.html.erb
refine-rails-2.11.3 app/views/refine/stored_filters/index.html.erb
refine-rails-2.11.2 app/views/refine/stored_filters/index.html.erb
refine-rails-2.11.1 app/views/refine/stored_filters/index.html.erb
refine-rails-2.11.0 app/views/refine/stored_filters/index.html.erb
refine-rails-2.10.1 app/views/refine/stored_filters/index.html.erb
refine-rails-2.10.0 app/views/refine/stored_filters/index.html.erb
refine-rails-2.9.14 app/views/refine/stored_filters/index.html.erb
refine-rails-2.9.13 app/views/refine/stored_filters/index.html.erb
refine-rails-2.9.12 app/views/refine/stored_filters/index.html.erb
refine-rails-2.9.11 app/views/refine/stored_filters/index.html.erb
refine-rails-2.9.10 app/views/refine/stored_filters/index.html.erb