2020-03-09 08:00:03 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
url="ACLs"
|
|
|
|
data="$ctrl.acl"
|
|
|
|
id-value="$ctrl.$params.id"
|
|
|
|
insert-mode="!$ctrl.$params.id"
|
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
|
|
|
<form
|
|
|
|
name="form"
|
|
|
|
vn-http-submit="watcher.submitGo('account.acl')"
|
|
|
|
class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
label="Role"
|
|
|
|
ng-model="$ctrl.acl.principalId"
|
2023-11-30 11:20:05 +00:00
|
|
|
url="VnRoles"
|
2020-03-09 08:00:03 +00:00
|
|
|
id-field="name"
|
|
|
|
value-field="name"
|
|
|
|
vn-focus>
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
label="Model"
|
|
|
|
ng-model="$ctrl.acl.model"
|
|
|
|
data="$ctrl.models"
|
|
|
|
id-field="name"
|
|
|
|
value-field="name">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
2023-11-30 11:20:05 +00:00
|
|
|
label="Property"
|
2020-03-09 08:00:03 +00:00
|
|
|
ng-model="$ctrl.acl.property"
|
|
|
|
info="Use * to match all properties">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
label="Access type"
|
|
|
|
ng-model="$ctrl.acl.accessType"
|
|
|
|
data="$ctrl.accessTypes"
|
|
|
|
id-field="name"
|
|
|
|
value-field="name">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
label="Permission"
|
|
|
|
ng-model="$ctrl.acl.permission"
|
|
|
|
data="$ctrl.permissions"
|
|
|
|
id-field="name"
|
|
|
|
value-field="name">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
2020-12-16 10:07:06 +00:00
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
2020-12-16 10:36:11 +00:00
|
|
|
label="Save">
|
2020-12-16 10:07:06 +00:00
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
|
|
|
class="cancel"
|
|
|
|
label="Cancel"
|
|
|
|
ui-sref="account.acl">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
2020-03-09 08:00:03 +00:00
|
|
|
</form>
|