- if f.object.is_a?(RecordCollection::Base) # Optionals
  .form-inputs= f.optional_input :window_date, as: :string, input_html: {class: 'datepicker'}
  - if local_assigns[:time_slot]
    .form-inputs= f.optional_input :window_from, collection: hours_for_select, include_blank: '--'
    .form-inputs= f.optional_input :window_to, collection: hours_for_select, include_blank: '--'
- else
  .form-inputs= f.input :window_date, as: :string, input_html: {class: 'datepicker'}
  - if local_assigns[:time_slot]
    .form-inputs= f.input :window_from, collection: hours_for_select, include_blank: '--'
    .form-inputs= f.input :window_to, collection: hours_for_select, include_blank: '--'

