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>
|
2017-02-21 10:36:43 +00:00
|
|
|
<form name="form" ng-submit="watcher.submit()" pad-medium>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-title>Web access</vn-title>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-check
|
|
|
|
vn-one
|
|
|
|
label="Enable web access"
|
|
|
|
field="$ctrl.account.active">
|
|
|
|
</vn-check>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
margin-medium-top
|
|
|
|
label="User"
|
|
|
|
field="$ctrl.account.name"
|
|
|
|
vn-focus>
|
|
|
|
</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>
|
2017-02-07 16:38:30 +00:00
|
|
|
<button response="CANCEL" translate>Cancel</button>
|
|
|
|
<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>
|