Sha256: 1b536ff4ff419379ff6d560266a6f2bb682bb3e5f428f1e9f759cc795afaf55b

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

<%= form_tag search_action_path, method: :get, class: [@classes[:form], "range_#{@facet_field.key} d-flex justify-content-center"].join(' ') do %>
  <%= render hidden_search_state %>

  <div class="range-limit-input-group">
    <div class="d-flex justify-content-between align-items-end">
      <div class="d-flex flex-column mr-1 me-1">
        <%= label_tag(begin_input_name, t("blacklight.range_limit.range_begin_short"), class: 'text-muted small mb-1') %>
        <%= number_field_tag(begin_input_name,
                              begin_value_default,
                              min: range_config[:min_value],
                              max: range_config[:max_value],
                              class: "form-control form-control-sm range_begin")
        %>
      </div>

      <div class="d-flex flex-column ml-1 ms-1">
        <%= label_tag(end_input_name, t("blacklight.range_limit.range_end_short"), class: 'text-muted small mb-1') %>
        <%= number_field_tag(end_input_name,
                              end_value_default,
                              min: range_config[:min_value],
                              max: range_config[:max_value],
                              class: "form-control form-control-sm range_end")
        %>
      </div>
    </div>
    <div class="d-flex justify-content-end mt-2">
      <%= submit_tag t('blacklight.range_limit.submit_limit'), class: @classes[:submit], name: nil %>
    </div>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight_range_limit-9.0.0.beta2 app/components/blacklight_range_limit/range_form_component.html.erb