2017-02-21 15:21:55 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
url="/client/api/Accounts"
|
|
|
|
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>
|
2018-12-14 11:56:21 +00:00
|
|
|
<form name="form" ng-submit="watcher.submit()" compact>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-card pad-large>
|
2018-05-31 11:45:51 +00:00
|
|
|
<vn-horizontal pad-small-v>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-check
|
|
|
|
vn-one
|
|
|
|
label="Enable web access"
|
2018-03-07 11:24:47 +00:00
|
|
|
field="$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"
|
2018-03-07 14:05:09 +00:00
|
|
|
field="$ctrl.account.name">
|
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>
|
2017-06-07 06:39:40 +00:00
|
|
|
<vn-submit label="Save"></vn-submit>
|
2017-09-21 05:53:23 +00:00
|
|
|
<vn-button ng-if="$ctrl.canChangePassword" label="Change password" vn-dialog="change-pass"></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()"
|
|
|
|
on-response="$ctrl.onPassChange(response)">
|
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"
|
|
|
|
model="$ctrl.newPassword">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
type="password"
|
|
|
|
label="Repeat password"
|
|
|
|
model="$ctrl.repeatPassword">
|
|
|
|
</vn-textfield>
|
2017-05-25 10:52:38 +00:00
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
2018-03-07 14:05:09 +00:00
|
|
|
<input type="button" response="CANCEL" translate-attr="{value: 'Cancel'}"/>
|
2017-02-07 16:38:30 +00:00
|
|
|
<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>
|