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.12.0 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.12.0 app/views/refine/advanced_inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.12 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.12 app/views/refine/advanced_inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.11 app/views/refine/advanced_inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.11 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.10 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.10 app/views/refine/advanced_inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.9 app/views/refine/advanced_inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.9 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.8 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.6 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.5 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.4 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.3 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.2 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.1 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.11.0 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.10.1 app/views/refine/inline/inputs/_numeric_condition.html.erb
refine-rails-2.10.0 app/views/refine/inline/inputs/_numeric_condition.html.erb