salix/client/client/src/web-access/web-access.html

54 lines
1.5 KiB
HTML
Raw Normal View History

2017-02-21 15:21:55 +00:00
<vn-watcher
vn-id="watcher"
url="/client/api/Accounts"
id-field="id"
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>
</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>
</vn-button-bar>
</form>
2017-02-07 13:34:26 +00:00
<vn-dialog
vn-id="change-pass"
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>
</tpl-buttons>
</vn-dialog>