Sha256: 38144ef2a0cbdf0af2b5ec5cb2ee23cedbdeb97e52d9d9520fafd745f6586778

Contents?: true

Size: 1.97 KB

Versions: 3

Compression:

Stored size: 1.97 KB

Contents

span ng-init="action.query.search[f] = action.query.search[f] || {}; value = value || {}"
  .col-lg-3.col-md-4.col-sm-4
    .form-group
      .input-group.input-group-sm
        input.btn.btn-default [
          ng-init="info = action.meta.info[f]"
          type="text"
          class="form-control"
          placeholder="{{::info.loc}} <"
          ng-model="value.from"
          xng-change="action.search_live(f)"
          data-max-date="{{value.to}}"
          data-date-format="{{::info.render.format}}"
          data-animation="{{::info.render.animation}}"
          bs-datepicker=""
          e2-datepicker="from"
          e2-model-format="{{::info.render.model_format}}"
          data-autoclose="1"
          e2-search-field=""
        ]
        .input-group-btn
          a.btn.btn-default data-toggle="datepicker": span.glyphicon.glyphicon-calendar
          a.btn.btn-default ng-disabled="!action.query.search[f].from" ng-click="value.from = null; action.query.search[f].from = null; action.search_live(f)": span.glyphicon.glyphicon-off

  .col-lg-3.col-md-4.col-sm-4
    .form-group
      .input-group.input-group-sm
        input.btn.btn-default [
          ng-init="info = action.meta.info[f]"
          type="text"
          class="form-control"
          placeholder="{{::info.loc}} >"
          ng-model="value.to"
          xng-change="action.search_live(f)"
          data-min-date="{{value.from}}"
          data-date-format="{{::info.render.format}}"
          data-animation="{{::info.render.animation}}"
          bs-datepicker=""
          e2-datepicker="to"
          e2-model-format="{{::info.render.model_format}}"
          data-autoclose="1"
          e2-search-field=""
        ]
        .input-group-btn
          a.btn.btn-default data-toggle="datepicker": span.glyphicon.glyphicon-calendar
          a.btn.btn-default ng-disabled="!action.query.search[f].to" ng-click="value.to = null; action.query.search[f].to = null; action.search_live(f)": span.glyphicon.glyphicon-off

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
engine2-1.0.2 views/search_fields/date_range.slim
engine2-1.0.1 views/search_fields/date_range.slim
engine2-1.0.0 views/search_fields/date_range.slim