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

55 lines
1.7 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>
<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"
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>
</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>
2019-09-18 07:41:25 +00:00
<vn-button label="Undo changes" ng-if="$ctrl.$.form.$dirty" ng-click="watcher.loadOriginalData()"></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"
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>
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>