Sha256: cd758c9075cd7c79955188c2f29f90c7e34edb96bffb99745d35c21af7222356

Contents?: true

Size: 1.02 KB

Versions: 20

Compression:

Stored size: 1.02 KB

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: new_refine_inline_criterion_url(
        @criterion.to_params),
      refine__criterion_form_form_id_value: form_id
    } do
  %>
    <%= fields model: @criterion do |form| %>
      <%= render "form_fields", form: form, conjunction: @conjunction, position: @position, form_id: form_id %>
    <% end %>
  <% end %>
<% end %>

<%# The actual form tag is appended to the end of the body html.  Inputs are attached using the `form` attribute. This allows the query builder to be placed inside an outer form on the page. %>
<%= turbo_stream.append_all "body" do %>
  <%= form_with url: refine_inline_criteria_path,
      method: :post,
      id: form_id,
      html: { autocomplete: "off" },
      data: {controller: "refine--turbo-stream-form", action: "submit->refine--turbo-stream-form#submit"} %>
<% end %>

Version data entries

20 entries across 20 versions & 1 rubygems

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