Sha256: f404777bbe2eb86a5e79c9f1af1f7068cc8b2eb31f854645a1df1a12305f4408

Contents?: true

Size: 1.91 KB

Versions: 2

Compression:

Stored size: 1.91 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 [
          type="text"
          class="form-control"
          placeholder="{{::info.loc}} <"
          ng-model="value.from"
          xng-change="action.search_field_change(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_field_change(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 [
          type="text"
          class="form-control"
          placeholder="{{::info.loc}} >"
          ng-model="value.to"
          xng-change="action.search_field_change(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_field_change(f)": span.glyphicon.glyphicon-off

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
engine2-1.0.5 views/search_fields/date_range.slim
engine2-1.0.4 views/search_fields/date_range.slim