salix/client/core/src/components/date-picker/date-picker.html

31 lines
858 B
HTML
Raw Normal View History

2017-11-02 07:18:37 +00:00
<div
class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label"
tabindex="1"
ng-focus="$ctrl.hasFocus = true"
ng-blur="$ctrl.hasFocus = false"
ng-mouseenter="$ctrl.hasMouseIn = true"
2017-12-04 07:17:29 +00:00
ng-mouseleave="$ctrl.hasMouseIn = false"
2018-02-10 15:18:01 +00:00
ng-click="$ctrl.onClick()">
2017-07-12 12:32:15 +00:00
<input type="text"
class="mdl-textfield__input"
2017-07-12 11:32:25 +00:00
name="{{::$ctrl.name}}"
ng-model="$ctrl.modelView"
ng-disabled="{{!$ctrl.enabled}}"
2017-11-02 07:18:37 +00:00
rule="{{::$ctrl.rule}}"/>
<div class="mdl-chip__action">
2018-02-10 15:18:01 +00:00
<i
class="material-icons"
ng-if="$ctrl.isTimePicker"
ng-click="$ctrl.vp.open()">
query_builder
</i>
<i
class="material-icons pointer"
ng-show="$ctrl.modelView&&($ctrl.hasFocus||$ctrl.hasMouseIn)"
ng-click="$ctrl.onClear()">
clear
</i>
2017-11-02 07:18:37 +00:00
</div>
<label class="mdl-textfield__label" translate>{{$ctrl.label}}</label>
2017-07-12 11:32:25 +00:00
</div>