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

67 lines
1.8 KiB
HTML
Raw Normal View History

2017-02-21 15:21:55 +00:00
<vn-watcher
vn-id="watcher"
url="Accounts"
2017-02-21 15:21:55 +00:00
id-field="id"
data="$ctrl.account"
2017-02-21 15:21:55 +00:00
form="form">
</vn-watcher>
2019-11-10 10:08:44 +00:00
<form name="form" ng-submit="watcher.submit()" class="vn-w-md">
<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>
2020-12-13 13:57:42 +00:00
<vn-submit
2020-12-15 15:51:36 +00:00
disabled="!watcher.dataChanged()"
2020-12-13 13:57:42 +00:00
label="Save">
</vn-submit>
<vn-button
2020-12-15 15:51:36 +00:00
ng-if="$ctrl.canChangePassword"
label="Change password"
vn-dialog="change-pass">
2020-12-13 13:57:42 +00:00
</vn-button>
<vn-button
2020-12-15 15:51:36 +00:00
class="cancel"
label="Undo changes"
disabled="!watcher.dataChanged()"
ng-click="watcher.loadOriginalData()">
2020-12-13 13:57:42 +00:00
</vn-button>
</vn-button-bar>
</form>
2017-02-07 13:34:26 +00:00
<vn-dialog
vn-id="change-pass"
on-open="$ctrl.onPassOpen()"
2020-07-29 08:47:48 +00:00
on-accept="$ctrl.onPassChange()">
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>
2019-10-30 15:57:14 +00:00
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
<button response="accept" translate>Change password</button>
</tpl-buttons>
</vn-dialog>