Sha256: c9079c9d97da6f1e5db443961175e69f725061f82d90d092620fbfa1eaa512e9

Contents?: true

Size: 1.03 KB

Versions: 11

Compression:

Stored size: 1.03 KB

Contents

<% form_id = dom_id(@criterion, :form) %>

<%= turbo_stream.update dom_id(@criterion) do %>
  <%= turbo_frame_tag dom_id(@criterion), class: "refine--inline-popup", data: {refine__popup_target: "frame"} do %>
      <%= tag.div class: "refine--criterion-fields",
        data: {
          controller: "refine--criterion-form",
          refine__criterion_form_url_value: edit_refine_advanced_inline_criterion_url(
            @criterion.position, @criterion.to_params
          ),
          refine__criterion_form_form_id_value: form_id
        } do
      %>
        <%= fields model: @criterion do |form| %>
          <%= render "form_fields", form: form, form_id: form_id %>
        <% end %>
      <% end %>
  <% end %>
<% end %>




<%= turbo_stream.append_all "body" do %>
  <%= form_with url: refine_advanced_inline_criterion_path(@criterion.position),
      method: :put,
      id: form_id,
      html: { autocomplete: "off" },
      data: {controller: "refine--turbo-stream-form", action: "submit->refine--turbo-stream-form#submit"}
   %>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refine-rails-2.13.3 app/views/refine/advanced_inline/criteria/edit.turbo_stream.erb
refine-rails-2.13.2 app/views/refine/advanced_inline/criteria/edit.turbo_stream.erb
refine-rails-2.13.1 app/views/refine/advanced_inline/criteria/edit.turbo_stream.erb
refine-rails-2.13.0 app/views/refine/advanced_inline/criteria/edit.turbo_stream.erb
refine-rails-2.12.2 app/views/refine/advanced_inline/criteria/edit.turbo_stream.erb
refine-rails-2.12.1 app/views/refine/advanced_inline/criteria/edit.turbo_stream.erb
refine-rails-2.12.0 app/views/refine/advanced_inline/criteria/edit.turbo_stream.erb
refine-rails-2.11.12 app/views/refine/advanced_inline/criteria/edit.turbo_stream.erb
refine-rails-2.11.11 app/views/refine/advanced_inline/criteria/edit.turbo_stream.erb
refine-rails-2.11.10 app/views/refine/advanced_inline/criteria/edit.turbo_stream.erb
refine-rails-2.11.9 app/views/refine/advanced_inline/criteria/edit.turbo_stream.erb