2017-02-21 15:21:55 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Accounts"
|
2017-02-21 15:21:55 +00:00
|
|
|
id-field="id"
|
2017-08-29 10:33:48 +00:00
|
|
|
data="$ctrl.account"
|
2017-02-21 15:21:55 +00:00
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
2019-11-10 10:08:44 +00:00
|
|
|
<form name="form" ng-submit="watcher.submit()" 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
|
|
|
|
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
|
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"
|
|
|
|
rule>
|
2018-03-01 22:38:14 +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
|
2020-12-15 15:51:36 +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"
|
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>
|