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

54 lines
1.6 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>
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>
<vn-title>Web access</vn-title>
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"
field="$ctrl.account.active"
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>
</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>
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>
</tpl-buttons>
</vn-dialog>