2018-07-16 06:00:04 +00:00
|
|
|
<vn-crud-model
|
2019-12-17 08:11:28 +00:00
|
|
|
url="UserPhoneTypes"
|
|
|
|
data="phoneTypes"
|
2018-12-19 14:59:35 +00:00
|
|
|
auto-load="true">
|
2018-07-16 06:00:04 +00:00
|
|
|
</vn-crud-model>
|
2019-12-17 08:11:28 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="UserPhones"
|
|
|
|
data="$ctrl.phones">
|
|
|
|
</vn-crud-model>
|
2018-08-02 07:49:00 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2019-12-17 08:11:28 +00:00
|
|
|
data="$ctrl.phones">
|
2018-08-02 07:49:00 +00:00
|
|
|
</vn-watcher>
|
2019-11-10 10:08:44 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2019-12-17 08:11:28 +00:00
|
|
|
<vn-horizontal ng-repeat="clientPhone in $ctrl.phones">
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
ng-model="clientPhone.typeFk"
|
|
|
|
initial-data="clientPhone.typeFk"
|
|
|
|
data ="phoneTypes"
|
|
|
|
show-field="code"
|
|
|
|
value-field="code"
|
|
|
|
label="Type"
|
|
|
|
vn-focus>
|
|
|
|
</vn-autocomplete>
|
2018-06-26 07:41:27 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Phone"
|
2019-12-17 08:11:28 +00:00
|
|
|
ng-model="clientPhone.phone">
|
2018-06-26 07:41:27 +00:00
|
|
|
</vn-textfield>
|
2018-08-30 06:50:03 +00:00
|
|
|
<vn-none>
|
2019-02-21 10:40:27 +00:00
|
|
|
<vn-icon-button
|
2019-12-17 08:11:28 +00:00
|
|
|
vn-tooltip="Remove phone"
|
2018-12-11 07:50:54 +00:00
|
|
|
icon="delete"
|
2019-12-17 08:11:28 +00:00
|
|
|
ng-click="model.remove($index)"
|
|
|
|
tabindex="-1">
|
2019-02-21 10:40:27 +00:00
|
|
|
</vn-icon-button>
|
2018-08-30 06:50:03 +00:00
|
|
|
</vn-none>
|
2018-06-26 07:41:27 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-one>
|
|
|
|
<vn-icon-button
|
|
|
|
vn-bind="+"
|
2019-12-17 08:11:28 +00:00
|
|
|
vn-tooltip="Add phone"
|
2018-06-26 07:41:27 +00:00
|
|
|
icon="add_circle"
|
|
|
|
ng-click="$ctrl.add()">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-one>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
|
|
|
</vn-button-bar>
|
2019-12-17 08:11:28 +00:00
|
|
|
</form>
|