2023-09-25 06:33:16 +00:00
|
|
|
<mg-ajax path="VnUsers/{{patch.params.id}}/update-user" options="vnPatch"></mg-ajax>
|
2020-03-09 08:00:03 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.user"
|
2023-09-21 13:06:14 +00:00
|
|
|
form="form"
|
2023-09-25 06:33:16 +00:00
|
|
|
save="patch">
|
2020-03-09 08:00:03 +00:00
|
|
|
</vn-watcher>
|
|
|
|
<form
|
|
|
|
name="form"
|
|
|
|
ng-submit="$ctrl.onSubmit()"
|
|
|
|
class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-textfield
|
2023-09-21 13:06:14 +00:00
|
|
|
label="User"
|
2020-03-09 08:00:03 +00:00
|
|
|
ng-model="$ctrl.user.name"
|
2023-04-18 09:33:36 +00:00
|
|
|
rule="VnUser"
|
2020-03-09 08:00:03 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
2023-09-21 13:06:14 +00:00
|
|
|
label="Nickname"
|
2020-03-09 08:00:03 +00:00
|
|
|
ng-model="$ctrl.user.nickname"
|
2023-04-18 09:33:36 +00:00
|
|
|
rule="VnUser">
|
2020-03-09 08:00:03 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
2023-09-21 13:06:14 +00:00
|
|
|
label="Personal email"
|
2020-03-09 08:00:03 +00:00
|
|
|
ng-model="$ctrl.user.email"
|
2023-04-18 09:33:36 +00:00
|
|
|
rule="VnUser">
|
2020-03-09 08:00:03 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
|
|
|
label="Language"
|
|
|
|
ng-model="$ctrl.user.lang"
|
|
|
|
url="Languages"
|
|
|
|
value-field="code"
|
2023-04-18 09:33:36 +00:00
|
|
|
rule="VnUser">
|
2020-03-09 08:00:03 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2020-12-16 10:36:11 +00:00
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
2020-03-09 08:00:03 +00:00
|
|
|
<vn-button
|
2020-12-16 10:36:11 +00:00
|
|
|
class="cancel"
|
2020-03-09 08:00:03 +00:00
|
|
|
label="Undo changes"
|
2020-12-16 10:36:11 +00:00
|
|
|
disabled="!watcher.dataChanged()"
|
2020-03-09 08:00:03 +00:00
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|