54 lines
1.4 KiB
HTML
54 lines
1.4 KiB
HTML
|
<vn-watcher
|
||
|
vn-id="watcher"
|
||
|
url="Accounts"
|
||
|
data="$ctrl.user"
|
||
|
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.user.name"
|
||
|
rule
|
||
|
vn-focus>
|
||
|
</vn-textfield>
|
||
|
<vn-textfield
|
||
|
label="Nickname"
|
||
|
ng-model="$ctrl.user.nickname"
|
||
|
rule>
|
||
|
</vn-textfield>
|
||
|
<vn-textfield
|
||
|
label="Email"
|
||
|
ng-model="$ctrl.user.email"
|
||
|
rule>
|
||
|
</vn-textfield>
|
||
|
<vn-autocomplete
|
||
|
label="Role"
|
||
|
ng-model="$ctrl.user.roleFk"
|
||
|
url="Roles"
|
||
|
rule>
|
||
|
</vn-autocomplete>
|
||
|
<vn-textfield
|
||
|
label="Password"
|
||
|
ng-model="$ctrl.user.password"
|
||
|
type="password">
|
||
|
</vn-textfield>
|
||
|
<vn-check
|
||
|
label="Active"
|
||
|
ng-model="$ctrl.user.active">
|
||
|
</vn-check>
|
||
|
</vn-vertical>
|
||
|
</vn-card>
|
||
|
<vn-submit
|
||
|
icon="check"
|
||
|
vn-tooltip="Create"
|
||
|
class="round"
|
||
|
fixed-bottom-right>
|
||
|
</vn-submit>
|
||
|
</form>
|