39 lines
947 B
HTML
39 lines
947 B
HTML
|
<vn-watcher
|
||
|
vn-id="watcher"
|
||
|
url="Roles"
|
||
|
data="$ctrl.role"
|
||
|
form="form">
|
||
|
</vn-watcher>
|
||
|
<form
|
||
|
name="form"
|
||
|
ng-submit="watcher.submit()"
|
||
|
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>
|
||
|
<vn-button-bar>
|
||
|
<vn-button
|
||
|
label="Undo changes"
|
||
|
ng-if="watcher.dataChanged()"
|
||
|
ng-click="watcher.loadOriginalData()">
|
||
|
</vn-button>
|
||
|
</vn-button-bar>
|
||
|
<vn-submit
|
||
|
icon="save"
|
||
|
vn-tooltip="Save"
|
||
|
class="round"
|
||
|
fixed-bottom-right>
|
||
|
</vn-submit>
|
||
|
</form>
|