Sha256: 4aa9a87691e7297ca051100882c14fb8ae2ca85b43128808f11a5a9d909cb225

Contents?: true

Size: 1.01 KB

Versions: 30

Compression:

Stored size: 1.01 KB

Contents

<div
  data-controller="refine--date"
  class="refine-date-picker-container"
  data-refine--date-locale-value="<%= I18n.locale %>"
  data-refine--date-date-format-value="<%=  I18n.t("refine.date.formats.moment") %>"
  data-refine--date-datetime-format-value="<%= I18n.t("refine.time.formats.moment") %>"
  data-refine--date-picker-locale-value="<%= I18n.t("refine.daterangepicker").deep_transform_keys { |k| k.to_s.camelize(:lower) }.to_json %>",
>
  <label for="<%= condition_id %>" class="sr-only"><%= label %></label>

  <input
    class="refine--date-picker-input"
    type="text"
    value="<%= date&.to_date && I18n.l(date&.to_date, format: I18n.t("refine.date.formats.ruby")) %>"
    data-refine--date-target="field"
  />
  <input
    type="hidden"
    name="<%= condition_id %>"
    value="<%= date&.to_date&.strftime('%Y-%m-%d') %>"
    data-refine--date-target="hiddenField"
    data-input-key="<%= input_key %>"
    data-input-id="<%= defined?(input_id) && input_id %>"
    data-action="change->refine--update#value"
  >
</div>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
refine-rails-2.12.0 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.11.12 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.11.11 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.11.10 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.11.9 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.11.8 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.11.6 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.11.5 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.11.4 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.11.3 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.11.2 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.11.1 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.11.0 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.10.1 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.10.0 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.9.14 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.9.13 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.9.12 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.9.11 app/views/refine/blueprints/clauses/_date_picker.html.erb
refine-rails-2.9.10 app/views/refine/blueprints/clauses/_date_picker.html.erb