Sha256: 54344347cd76ed99885554c3312253cf81c3780de50677a75ba88ba3f39da5b0

Contents?: true

Size: 1.57 KB

Versions: 30

Compression:

Stored size: 1.57 KB

Contents

<% condition_id = condition.try(:id) || condition[:id] %>
<% if ['st', 'nst'].include? input[:clause] %>
  <!-- render nothing -->
<% else %>
    <div class="<%= input[:clause] != 'btwn' ? 'refine-numeric-condition-container' : 'refine-numeric-condition-container-btwn' %>">

      <input
        class="refine-numeric-condition-input <%="has-error" if criterion.errors.any? %> "
        name="<%= condition_id %>"
        type="text"
        value="<%= input[:value1] %>"
        data-input-key="value1"
        data-action="input->refine--update#value blur->refine--update#refreshFromServer"
        data-input-id="<%= defined?(input_id) && input_id %>"
      />
      <%= render partial: 'refine/blueprints/criterion_errors', locals: { criterion: criterion } %>
    </div>

    <% if ['btwn', 'nbtwn'].include? input[:clause] %>
      <!-- Add second input for value2 if clause is between or not between -->
      <span class="refine-numeric-condition-and"><%= t("refine.refine_blueprints.clauses.numeric_condition.and") %></span>
      <div class="refine-numeric-condition-second-container">
        <input
          class="refine-numeric-condition-second-input"
          name="<%= condition_id %>"
          type="text"
          value="<%= input[:value2] %>"
          data-input-key="value2"
          data-action="input->refine--update#value blur->refine--update#refreshFromServer"
          data-input-id="<%= defined?(input_id) && input_id %>"
        />
        <%= render partial: 'refine/blueprints/criterion_errors', locals: { criterion: criterion } %>
      </div>
    <% end %>
<% end %>

Version data entries

30 entries across 30 versions & 1 rubygems

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