34 lines
863 B
HTML
34 lines
863 B
HTML
<mg-ajax
|
|
path="Accounts/{{$ctrl.worker.userFk}}"
|
|
actions="user = edit.model"
|
|
options="mgEdit">
|
|
</mg-ajax>
|
|
<vn-watcher
|
|
vn-id="watcher"
|
|
url="Accounts"
|
|
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"
|
|
ng-model="user.nickname">
|
|
</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>
|