Sha256: e4db5a92a3a74c16288cc617cb11a484be6d1e973ffd30f065f5dfc03159f6db

Contents?: true

Size: 1.99 KB

Versions: 27

Compression:

Stored size: 1.99 KB

Contents

<% criterion_id = criterion.position %>

<%= tag.div(class: 'refine-criterion-container', data: {
  controller: 'refine--update',
  refine__update_criterion_id_value: criterion_id,
  position: criterion.position}) do %>

  <div class="refine-criterion-line">
  <!-- Select Condition -->
    <div class="refine-criterion-condition-container">
      <%= render partial: 'refine/blueprints/condition_select', locals: {
        selected_condition_id: criterion.condition_id } %>
    </div>

    <!-- Select Clause -->
    <div class="refine-criterion-clause-container">
      <%= render partial: 'refine/blueprints/clause_select', locals: {
          meta: criterion.meta, selected_clause: criterion.input[:clause]} %>
    </div>

    <!-- Render correct type of condition -->
    <%= render partial: "refine/blueprints/clauses/#{criterion.component}", locals: {
      criterion: criterion,
      condition: criterion.condition, input: criterion.input, criterion_id: criterion_id, meta: criterion.meta, meta_clause: criterion.selected_clause_meta, input_id: nil } %>
  </div>

  <!-- Refinements -->
  <% criterion.refinements.each do |refinement|%>

    <div class="refine-criterion-refinement-line">
      <i class="fa-thin fa-l"></i>
      <div class="refine-criterion-refinement-container">
        <%= render partial: 'refine/blueprints/clause_select', locals: {
          meta: refinement[:meta], input_id: "input, #{refinement[:id]}", selected_clause: criterion.input.dig(refinement[:id].to_sym, :clause) || {} } %>
      </div>

      <%= render partial: "refine/blueprints/clauses/#{refinement[:component].underscore}", locals: {
        condition: refinement, input: criterion.input[refinement[:id].to_sym] || {}, criterion_id: criterion_id, meta: refinement[:meta], input_id: "input, #{refinement[:id]}", meta_clause: criterion.meta_for_refinement_clause(refinement), criterion: criterion} %>
    </div>
  <% end %>
  <!-- End Refinements -->

<% end %>

<%= render 'refine/blueprints/delete_criterion', criterion_id: criterion_id %>

Version data entries

27 entries across 27 versions & 1 rubygems

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