Sha256: bf86552c87391d41eaf51473bc7ad65b96882fc742d4dbfc83ffa8244437948a

Contents?: true

Size: 818 Bytes

Versions: 9

Compression:

Stored size: 818 Bytes

Contents

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

<%= turbo_stream.update dom_id(@criterion) do %>
  <%= tag.div class: "refine--criterion-fields",
    data: {
      controller: "refine--criterion-form",
      refine__criterion_form_url_value: edit_refine_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 %>


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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refine-rails-2.9.9 app/views/refine/inline/criteria/edit.turbo_stream.erb
refine-rails-2.9.8 app/views/refine/inline/criteria/edit.turbo_stream.erb
refine-rails-2.9.7 app/views/refine/inline/criteria/edit.turbo_stream.erb
refine-rails-2.9.6 app/views/refine/inline/criteria/edit.turbo_stream.erb
refine-rails-2.9.5 app/views/refine/inline/criteria/edit.turbo_stream.erb
refine-rails-2.9.4 app/views/refine/inline/criteria/edit.turbo_stream.erb
refine-rails-2.9.3 app/views/refine/inline/criteria/edit.turbo_stream.erb
refine-rails-2.9.2 app/views/refine/inline/criteria/edit.turbo_stream.erb
refine-rails-2.9.1 app/views/refine/inline/criteria/edit.turbo_stream.erb