43 lines
1.1 KiB
HTML
43 lines
1.1 KiB
HTML
<mg-ajax path="VnUsers/{{post.params.id}}/privileges" options="vnPost"></mg-ajax>
|
|
<vn-watcher
|
|
vn-id="watcher"
|
|
url="VnUsers"
|
|
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>
|