2017-02-21 15:21:55 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2017-08-29 10:33:48 +00:00
|
|
|
data="$ctrl.account"
|
2017-02-21 15:21:55 +00:00
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
2022-06-20 05:31:10 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="UserPasswords"
|
|
|
|
data="$ctrl.passRequirements">
|
|
|
|
</vn-crud-model>
|
2022-06-16 09:32:42 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-horizontal>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-check
|
2021-07-21 08:06:50 +00:00
|
|
|
vn-id="active"
|
|
|
|
disabled="watcher.orgData.name != $ctrl.account.name"
|
2018-03-01 22:38:14 +00:00
|
|
|
vn-one
|
|
|
|
label="Enable web access"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.account.active"
|
2018-03-21 08:06:05 +00:00
|
|
|
vn-acl="employee">
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-check>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
2021-07-21 08:06:50 +00:00
|
|
|
vn-id="name"
|
|
|
|
disabled="watcher.orgData.active != $ctrl.account.active"
|
2018-03-07 14:05:09 +00:00
|
|
|
vn-focus
|
2018-03-01 22:38:14 +00:00
|
|
|
vn-one
|
|
|
|
label="User"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.account.name"
|
2023-01-25 13:14:55 +00:00
|
|
|
rule="VnUser.name">
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
2022-06-20 05:31:10 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-id="email"
|
|
|
|
disabled="watcher.orgData.active != $ctrl.account.active"
|
|
|
|
vn-one
|
|
|
|
label="Recovery email"
|
|
|
|
ng-model="$ctrl.account.email"
|
2022-06-21 11:58:47 +00:00
|
|
|
info="This email is used for user to regain access their account."
|
2023-01-25 13:14:55 +00:00
|
|
|
rule="VnUser.name">
|
2022-06-20 05:31:10 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
2017-01-31 13:13:06 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2020-12-13 13:57:42 +00:00
|
|
|
<vn-submit
|
2020-12-15 15:51:36 +00:00
|
|
|
disabled="!watcher.dataChanged()"
|
2020-12-13 13:57:42 +00:00
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
2023-05-12 07:02:55 +00:00
|
|
|
ng-if="$ctrl.canChangePassword"
|
|
|
|
label="Change password"
|
|
|
|
vn-dialog="change-pass">
|
2020-12-13 13:57:42 +00:00
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
2020-12-15 15:51:36 +00:00
|
|
|
class="cancel"
|
|
|
|
label="Undo changes"
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
ng-click="watcher.loadOriginalData()">
|
2020-12-13 13:57:42 +00:00
|
|
|
</vn-button>
|
2017-01-31 13:13:06 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|
2017-02-07 13:34:26 +00:00
|
|
|
<vn-dialog
|
|
|
|
vn-id="change-pass"
|
2017-02-06 17:01:04 +00:00
|
|
|
on-open="$ctrl.onPassOpen()"
|
2020-07-29 08:47:48 +00:00
|
|
|
on-accept="$ctrl.onPassChange()">
|
2017-05-25 10:52:38 +00:00
|
|
|
<tpl-body>
|
2017-05-17 19:23:47 +00:00
|
|
|
<vn-textfield
|
|
|
|
type="password"
|
|
|
|
label="New password"
|
2022-06-20 05:31:10 +00:00
|
|
|
info="{{'Password requirements' | translate:$ctrl.passRequirements[0]}}"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.newPassword">
|
2017-05-17 19:23:47 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
type="password"
|
|
|
|
label="Repeat password"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.repeatPassword">
|
2017-05-17 19:23:47 +00:00
|
|
|
</vn-textfield>
|
2017-05-25 10:52:38 +00:00
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
2019-10-30 15:57:14 +00:00
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Change password</button>
|
2017-05-25 12:23:19 +00:00
|
|
|
</tpl-buttons>
|
2017-02-06 17:01:04 +00:00
|
|
|
</vn-dialog>
|