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"
|
2023-01-25 13:14:55 +00:00
|
|
|
url="VnUsers"
|
2022-10-03 13:11:29 +00:00
|
|
|
data="$ctrl.user"
|
|
|
|
id-value="$ctrl.$params.id"
|
|
|
|
form="form"
|
|
|
|
save="post">
|
|
|
|
</vn-watcher>
|
|
|
|
<form
|
|
|
|
name="form"
|
|
|
|
ng-submit="watcher.submit()"
|
|
|
|
class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg" vn-focus>
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-check
|
|
|
|
label="Has grant"
|
|
|
|
ng-model="$ctrl.user.hasGrant">
|
|
|
|
</vn-check>
|
|
|
|
</vn-vertical>
|
|
|
|
<vn-vertical
|
|
|
|
class="vn-mt-md">
|
|
|
|
<vn-autocomplete
|
|
|
|
label="Role"
|
|
|
|
ng-model="$ctrl.user.roleFk"
|
|
|
|
url="Roles">
|
|
|
|
</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>
|