salix/front/core/components/textfield/textfield.html

42 lines
1.5 KiB
HTML
Raw Normal View History

2018-06-28 13:54:54 +00:00
<div class="container"
2018-07-03 12:33:31 +00:00
ng-class="{selected: $ctrl.hasFocus}">
2018-06-28 13:54:54 +00:00
<div class="textField">
2018-09-14 07:10:30 +00:00
<div class="leftIcons" ng-transclude="leftIcons"></div>
2018-06-28 13:54:54 +00:00
<div class="infix">
2018-07-03 12:33:31 +00:00
<input
class="mdl-textfield__input"
2018-07-03 12:33:31 +00:00
type="{{$ctrl.type}}"
name="{{$ctrl.name}}"
ng-model="$ctrl.value"
vn-validation="{{$ctrl.rule}}"
ng-disabled="$ctrl.disabled"
ng-readonly="$ctrl.readonly"
ng-focus="$ctrl.hasFocus = true"
ng-blur="$ctrl.hasFocus = false"
tabindex="{{$ctrl.input.tabindex}}"/>
2019-06-17 06:14:48 +00:00
<label class="label">
<span translate>{{::$ctrl.label}}</span>
<span translate ng-show="::$ctrl.required">*</span>
2019-06-17 06:14:48 +00:00
</label>
2018-06-28 13:54:54 +00:00
</div>
<div class="underline"></div>
<div class="selected underline"></div>
<div class="suffix">
2018-07-03 12:33:31 +00:00
<i class="material-icons clear"
translate-attr="{title: 'Clear'}"
2018-08-29 06:15:23 +00:00
ng-show="!$ctrl.disabled
2018-06-28 13:54:54 +00:00
&& $ctrl.hasValue
2018-08-29 06:15:23 +00:00
&& !$ctrl.unclearable"
2018-06-28 13:54:54 +00:00
ng-click="$ctrl.clear()">
clear
</i>
<i class="material-icons"
ng-if="$ctrl.hasInfo"
vn-tooltip="{{$ctrl.info}}">
info_outline
</i>
</div>
2018-09-14 07:10:30 +00:00
<div class="rightIcons" ng-transclude="rightIcons"></div>
2017-09-13 08:59:34 +00:00
</div>
2017-09-12 09:44:56 +00:00
</div>