58 lines
1.5 KiB
HTML
58 lines
1.5 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-button-bar>
|
|
<vn-submit
|
|
label="Create">
|
|
</vn-submit>
|
|
<vn-button
|
|
class="cancel"
|
|
label="Cancel"
|
|
ui-sref="account.index">
|
|
</vn-button>
|
|
</vn-button-bar>
|
|
</form>
|