Sha256: 1975cbaa0b6884b7560231840ab4f40e699e46b794b857cb20e86133ad49bf2d

Contents?: true

Size: 860 Bytes

Versions: 35

Compression:

Stored size: 860 Bytes

Contents

<%
  is_range = ['btwn', 'nbtwn'].include? input_fields.object.clause
  value1_placeholder = criterion.condition.display.downcase
  value1_placeholder += " (#{t('.min')})" if is_range
  value2_placeholder = "#{criterion.condition.display.downcase} (#{t('.max')})"
%>

<%= tag.div class: ('btwn' ? 'refine--numeric-condition-container' : 'refine-numeric-condition-container-btwn') do %>

  <%= input_fields.text_field :value1,
    class: "refine--input refine--numeric-input",
    placeholder: value1_placeholder,
    form: form_id
  %>

  <% if is_range %>
    <div class="refine--numeric-condition-and"><%= t(".and") %></div>
    <div class="refine--numeric-condition-second-container">
      <%= input_fields.text_field :value2, class: "refine--input refine--numeric-input", placeholder: value2_placeholder,
form: form_id %>
    </div>
  <% end %>
<% end %>

Version data entries

35 entries across 30 versions & 1 rubygems

Version Path
refine-rails-2.9.14 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.13 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.12 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.11 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.10 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.9 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.8 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.7 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.6 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.5 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.4 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.3 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.2 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.1 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.9.0 app/views/refine/inline/inputs/_numeric_condition.html.erb