Sha256: 82b406ec9bf4e8c32bdd6679350f55b54d4b0567f26fd0af171f12671a24961c

Contents?: true

Size: 1.54 KB

Versions: 30

Compression:

Stored size: 1.54 KB

Contents

<%= turbo_frame_tag "stored_filters" do %>
  <%= content_tag :div, class: "refine-stored-filter-container", data: {
    controller: 'refine--stored-filter',
    refine__stored_filter_id_value: @stored_filter&.id,
    refine__stored_query_id_value: @refine_filter_builder.client_id,
    refine__stored_filter_state_dom_id_value: dom_id(@refine_filter_builder, "query"),
    action: 'blueprint-updated@window->refine--stored-filter#updateBlueprintField'
  } do %>
    <% if @stored_filter.errors.any? %>
      <% @stored_filter.errors.full_messages.each do |message|%>
        <p class="refine-stored-filter-error"><%= message %></p>
      <% end %>
    <% end %>
    <%= form_with(model: @refine_filter_builder, url: refine_stored_filters_path, method: :post,
      class: "refine-stored-filter-form", data: {
        turbo_frame: :stored_filters
      }) do |form| %>
        <%= form.hidden_field :client_id %>
        <%= form.hidden_field :filter_class %>
        <%= form.hidden_field :blueprint_json, data: {refine__stored_filter_target: "blueprintField"} %>
        <input type="text" name="name" placeholder="<%= t('global.filter_name_placeholder')%>"
          class="refine-stored-filter-input"
          value="<%= @stored_filter.name %>"
        />
        <%= 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.save'), type: "submit", class: "refine-stored-filter-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/new.html.erb
refine-rails-2.11.12 app/views/refine/stored_filters/new.html.erb
refine-rails-2.11.11 app/views/refine/stored_filters/new.html.erb
refine-rails-2.11.10 app/views/refine/stored_filters/new.html.erb
refine-rails-2.11.9 app/views/refine/stored_filters/new.html.erb
refine-rails-2.11.8 app/views/refine/stored_filters/new.html.erb
refine-rails-2.11.6 app/views/refine/stored_filters/new.html.erb
refine-rails-2.11.5 app/views/refine/stored_filters/new.html.erb
refine-rails-2.11.4 app/views/refine/stored_filters/new.html.erb
refine-rails-2.11.3 app/views/refine/stored_filters/new.html.erb
refine-rails-2.11.2 app/views/refine/stored_filters/new.html.erb
refine-rails-2.11.1 app/views/refine/stored_filters/new.html.erb
refine-rails-2.11.0 app/views/refine/stored_filters/new.html.erb
refine-rails-2.10.1 app/views/refine/stored_filters/new.html.erb
refine-rails-2.10.0 app/views/refine/stored_filters/new.html.erb
refine-rails-2.9.14 app/views/refine/stored_filters/new.html.erb
refine-rails-2.9.13 app/views/refine/stored_filters/new.html.erb
refine-rails-2.9.12 app/views/refine/stored_filters/new.html.erb
refine-rails-2.9.11 app/views/refine/stored_filters/new.html.erb
refine-rails-2.9.10 app/views/refine/stored_filters/new.html.erb