Sha256: 44a5589e8c143658ead36028caadc2390b01779e15050883c76ecc0bcb04a1f8

Contents?: true

Size: 1.67 KB

Versions: 1

Compression:

Stored size: 1.67 KB

Contents

<%= search_form_for @search, url: spree.sales_total_admin_reports_path  do |s| %>
  <div class="form-group date-range-filter">
    <%= label_tag nil, Spree.t(:date_range) %>
    <div class="date-range-filter row">
      <div class="col-12 col-md-6 mb-3 mb-md-0">
        <div class="input-group datePickerFrom"
             data-wrap="true"
             data-date-format="<%= Spree.t(:js_format, scope: 'date_picker', default: 'Y/m/d') %>"
             data-max-date="<%= params[:q][:completed_at_lt] %>">
          <%= s.text_field :completed_at_gt,
                           class: 'form-control shadow-none',
                           placeholder: Spree.t(:starting_from),
                           value: datepicker_field_value(params[:q][:completed_at_gt]),
                           'data-input':'' %>

          <%= render partial: 'spree/admin/shared/cal_close' %>
        </div>
      </div>

      <div class="col-12 col-md-6 mt-3 mt-md-0">
        <div class="input-group datePickerTo"
             data-wrap="true"
             data-date-format="<%= Spree.t(:js_format, scope: 'date_picker', default: 'Y/m/d') %>"
             data-min-date="<%= params[:q][:completed_at_gt] %>">

          <%= s.text_field :completed_at_lt,
                           class: 'form-control shadow-none',
                           placeholder: Spree.t(:ending_at),
                           value: datepicker_field_value(params[:q][:completed_at_lt]),
                           'data-input':'' %>
          <%= render partial: 'spree/admin/shared/cal_close' %>
        </div>
      </div>
    </div>
  </div>

  <div class="form-actions">
    <%= button Spree.t(:search), 'search.svg' %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_backend-4.2.0.rc5 app/views/spree/admin/shared/_report_order_criteria.html.erb