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