2020-03-09 08:00:03 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
url="Roles"
|
|
|
|
data="$ctrl.role"
|
|
|
|
insert-mode="true"
|
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
|
|
|
<form
|
|
|
|
name="form"
|
|
|
|
vn-http-submit="$ctrl.onSubmit()"
|
|
|
|
class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-textfield
|
|
|
|
label="Name"
|
|
|
|
ng-model="$ctrl.role.name"
|
|
|
|
rule
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
label="Description"
|
|
|
|
ng-model="$ctrl.role.description"
|
|
|
|
rule>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
2020-12-16 10:07:06 +00:00
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
label="Create">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
|
|
|
class="cancel"
|
|
|
|
label="Cancel"
|
|
|
|
ui-sref="account.role">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
2020-03-09 08:00:03 +00:00
|
|
|
</form>
|