2019-10-04 22:16:57 +00:00
|
|
|
<mg-ajax
|
2019-10-24 22:53:53 +00:00
|
|
|
path="Accounts/{{$ctrl.worker.userFk}}"
|
2019-10-04 22:16:57 +00:00
|
|
|
actions="user = edit.model"
|
|
|
|
options="mgEdit">
|
|
|
|
</mg-ajax>
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Accounts"
|
2019-10-04 22:16:57 +00:00
|
|
|
id-field="id"
|
|
|
|
data="user"
|
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-field
|
|
|
|
vn-one
|
|
|
|
label="Nickname"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="user.nickname">
|
2019-10-04 22:16:57 +00:00
|
|
|
</vn-field>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
|
|
|
<vn-button
|
|
|
|
label="Undo changes"
|
|
|
|
ng-if="watcher.dataChanged()"
|
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|