salix/modules/client/front/web-access/index.html

86 lines
2.6 KiB
HTML
Raw Permalink Normal View History

2017-02-21 15:21:55 +00:00
<vn-watcher
vn-id="watcher"
data="$ctrl.account"
2017-02-21 15:21:55 +00:00
form="form">
</vn-watcher>
<vn-crud-model
auto-load="true"
url="UserPasswords"
data="$ctrl.passRequirements">
</vn-crud-model>
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<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
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"
vn-acl="employee">
2018-03-01 22:38:14 +00:00
</vn-check>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
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>
<vn-horizontal>
<vn-textfield
vn-id="email"
disabled="watcher.orgData.active != $ctrl.account.active"
vn-one
label="Recovery email"
ng-model="$ctrl.account.email"
info="This email is used for user to regain access their account."
2023-07-21 10:33:14 +00:00
rule="VnUser.email">
</vn-textfield>
</vn-horizontal>
</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>
</vn-button-bar>
</form>
2017-02-07 13:34:26 +00:00
<vn-dialog
vn-id="change-pass"
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"
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>
</tpl-buttons>
</vn-dialog>