2020-03-09 08:00:03 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2023-05-30 07:13:47 +00:00
|
|
|
url="VnUsers"
|
2020-03-09 08:00:03 +00:00
|
|
|
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
|
2023-05-23 06:45:03 +00:00
|
|
|
label="Name"
|
2020-03-09 08:00:03 +00:00
|
|
|
ng-model="$ctrl.user.name"
|
2023-04-18 09:33:36 +00:00
|
|
|
rule="VnUser"
|
2020-03-09 08:00:03 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
2023-05-23 06:45:03 +00:00
|
|
|
label="Nickname"
|
2020-03-09 08:00:03 +00:00
|
|
|
ng-model="$ctrl.user.nickname"
|
2023-04-18 09:33:36 +00:00
|
|
|
rule="VnUser">
|
2020-03-09 08:00:03 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
2023-05-23 06:45:03 +00:00
|
|
|
label="Email"
|
2020-03-09 08:00:03 +00:00
|
|
|
ng-model="$ctrl.user.email"
|
2023-04-18 09:33:36 +00:00
|
|
|
rule="VnUser">
|
2020-03-09 08:00:03 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
|
|
|
label="Role"
|
|
|
|
ng-model="$ctrl.user.roleFk"
|
|
|
|
url="Roles"
|
2023-04-18 09:33:36 +00:00
|
|
|
rule="VnUser">
|
2020-03-09 08:00:03 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-textfield
|
|
|
|
label="Password"
|
|
|
|
ng-model="$ctrl.user.password"
|
|
|
|
type="password">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-check
|
2023-05-23 06:45:03 +00:00
|
|
|
label="Active"
|
2020-03-09 08:00:03 +00:00
|
|
|
ng-model="$ctrl.user.active">
|
|
|
|
</vn-check>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
2020-12-16 10:07:06 +00:00
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit
|
|
|
|
label="Create">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
|
|
|
class="cancel"
|
|
|
|
label="Cancel"
|
|
|
|
ui-sref="account.index">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
2020-03-09 08:00:03 +00:00
|
|
|
</form>
|