2020-03-09 08:00:03 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2023-11-30 11:20:05 +00:00
|
|
|
url="VnRoles"
|
2020-03-09 08:00:03 +00:00
|
|
|
data="$ctrl.role"
|
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
|
|
|
<form
|
|
|
|
name="form"
|
|
|
|
ng-submit="watcher.submit()"
|
2023-12-05 11:00:31 +00:00
|
|
|
|
2020-03-09 08:00:03 +00:00
|
|
|
class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-textfield
|
2023-11-30 11:20:05 +00:00
|
|
|
label="Name"
|
2020-03-09 08:00:03 +00:00
|
|
|
ng-model="$ctrl.role.name"
|
2023-12-11 11:40:16 +00:00
|
|
|
rule="VnRole.name"
|
2020-03-09 08:00:03 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
2023-12-05 11:00:31 +00:00
|
|
|
label="Description"
|
|
|
|
ng-model="$ctrl.role.description"
|
2023-12-11 11:40:16 +00:00
|
|
|
rule="VnRole.description"
|
2023-12-05 11:00:31 +00:00
|
|
|
>
|
2020-03-09 08:00:03 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</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>
|
2023-11-30 11:20:05 +00:00
|
|
|
</form>
|