2023-01-23 14:24:00 +00:00
|
|
|
<mg-ajax path="VnUsers/{{post.params.id}}/privileges" options="vnPost"></mg-ajax>
|
2022-10-03 13:11:29 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.user"
|
|
|
|
form="form"
|
|
|
|
save="post">
|
|
|
|
</vn-watcher>
|
|
|
|
<form
|
|
|
|
name="form"
|
|
|
|
ng-submit="watcher.submit()"
|
|
|
|
class="vn-w-md">
|
2023-05-23 11:41:13 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2022-10-03 13:11:29 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-check
|
|
|
|
label="Has grant"
|
|
|
|
ng-model="$ctrl.user.hasGrant">
|
|
|
|
</vn-check>
|
|
|
|
</vn-vertical>
|
2023-05-23 11:41:13 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-card class="vn-pa-lg vn-mt-md">
|
|
|
|
<vn-vertical>
|
2022-10-03 13:11:29 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
label="Role"
|
|
|
|
ng-model="$ctrl.user.roleFk"
|
2023-11-30 11:20:05 +00:00
|
|
|
url="VnRoles">
|
2022-10-03 13:11:29 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
|
|
|
class="cancel"
|
|
|
|
label="Undo changes"
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|