src/Elements/Bundle/DemiFrontendBundle/Resources/views/Events/filter/filter-parts/datepicker.html.twig line 1

Open in your IDE?
  1. {% do jsConfig().add({'datepicker' : true, 'floatingLabel' : true}) %}
  2. <div class="form-group js-datepicker datepicker js-datepicker--demi {{ styleModifier }}">
  3.     <div class="position-relative datepicker-container">
  4.         <label for="{{ inputname }}Visible" class="form-control-label floating-label floating-label--static">{{ inputlabel }}</label>
  5.         <input data-alt-field="#{{ inputname }}"
  6.                data-date-picker="{{ datepickerLabel }}"
  7.                id="{{ inputname }}Visible"
  8.                readonly
  9.                type="text"
  10.                name="{{ inputname }}Visible"
  11.                class="js-datepicker__input form-control--datepicker form-control js-floating-label"
  12.                value="{{ app.request.get(inputname) is not empty ? app.request.get(inputname) : '' }}">
  13.         <input class="js-datepicker__alt-field js-filter-form__input js-filter-form__input--no-filter js-floating-label"
  14.                type="hidden"
  15.                value="{{ app.request.get(inputname) is not empty ? app.request.get(inputname) : dateString }}"
  16.                name="{{ inputname }}"
  17.                id="{{ inputname }}">
  18.     </div>
  19. </div>