2018-09-13 09:27:38 +00:00
|
|
|
<div class="container"
|
|
|
|
ng-class="{selected: $ctrl.hasFocus}">
|
|
|
|
<div class="textField">
|
|
|
|
<div class="leftIcons">
|
|
|
|
<vn-icon-button
|
2019-02-25 09:03:50 +00:00
|
|
|
ng-if="::$ctrl.step"
|
2018-09-13 09:27:38 +00:00
|
|
|
icon="remove"
|
|
|
|
ng-click="$ctrl.remove()"
|
2019-01-30 22:47:06 +00:00
|
|
|
tabindex="-1"
|
|
|
|
translate-attr="{title: 'Remove'}">
|
2018-09-13 09:27:38 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
</div>
|
|
|
|
<div class="infix">
|
|
|
|
<input
|
|
|
|
class="mdl-textfield__input"
|
|
|
|
type="number"
|
2019-02-25 09:03:50 +00:00
|
|
|
name="{{::$ctrl.name}}"
|
2018-09-13 09:27:38 +00:00
|
|
|
ng-model="$ctrl.value"
|
|
|
|
ng-disabled="$ctrl.disabled"
|
|
|
|
ng-readonly="$ctrl.readonly"
|
|
|
|
ng-focus="$ctrl.hasFocus = true"
|
|
|
|
ng-blur="$ctrl.hasFocus = false"
|
|
|
|
tabindex="{{$ctrl.input.tabindex}}"/>
|
|
|
|
<label class="label" translate>{{::$ctrl.label}}</label>
|
|
|
|
</div>
|
|
|
|
<div class="underline"></div>
|
|
|
|
<div class="selected underline"></div>
|
|
|
|
<div class="suffix">
|
|
|
|
<vn-icon-button
|
2019-02-25 09:03:50 +00:00
|
|
|
ng-if="::$ctrl.step"
|
2018-09-13 09:27:38 +00:00
|
|
|
icon="add"
|
|
|
|
ng-click="$ctrl.add()"
|
2019-01-30 22:47:06 +00:00
|
|
|
tabindex="-1"
|
|
|
|
translate-attr="{title: 'Add'}">
|
2018-09-13 09:27:38 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
<i class="material-icons"
|
2019-02-25 09:03:50 +00:00
|
|
|
ng-if="::$ctrl.hasInfo"
|
|
|
|
vn-tooltip="{{::$ctrl.info}}">
|
2018-09-13 09:27:38 +00:00
|
|
|
info_outline
|
|
|
|
</i>
|
|
|
|
</div>
|
|
|
|
<div class="rightIcons"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|