2017-02-07 11:58:25 +00:00
|
|
|
<form name="form" ng-submit="form.$valid && watcher.submit()" pad-medium >
|
2017-01-31 13:13:06 +00:00
|
|
|
<vn-card>
|
|
|
|
<vn-vertical pad-large>
|
|
|
|
<vn-title>Web access</vn-title>
|
2017-02-06 17:01:04 +00:00
|
|
|
<vn-check label="Acceso Web" field="$ctrl.account.active"></vn-check>
|
|
|
|
<vn-textfield label="Usuario" class="margin-medium-top" field="$ctrl.account.name" focus></vn-textfield>
|
2017-01-31 13:13:06 +00:00
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Guardar"></vn-submit>
|
2017-02-06 17:01:04 +00:00
|
|
|
<vn-button label="Cambiar contraseña" vn-dialog="change-pass"></vn-button>
|
2017-01-31 13:13:06 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|
2017-02-06 17:01:04 +00:00
|
|
|
<vn-watcher
|
2017-02-07 11:58:25 +00:00
|
|
|
vn-id="watcher"
|
2017-02-06 17:01:04 +00:00
|
|
|
id-field="id"
|
|
|
|
url="/client/api/Accounts"
|
|
|
|
watch="$ctrl.client.account"
|
|
|
|
to="$ctrl.account">
|
|
|
|
</vn-watcher>
|
|
|
|
<vn-dialog id="change-pass"
|
|
|
|
on-open="$ctrl.onPassOpen()"
|
|
|
|
on-response="$ctrl.onPassChange(response)">
|
|
|
|
<dbody>
|
|
|
|
<vn-password label="New password" model="$ctrl.newPassword" focus></vn-password>
|
|
|
|
<vn-password label="Repeat password" model="$ctrl.repeatPassword"></vn-password>
|
|
|
|
</dbody>
|
|
|
|
<buttons>
|
|
|
|
<button response="CANCEL">Cancel</button>
|
|
|
|
<button response="ACCEPT">Change password</button>
|
|
|
|
</buttons>
|
|
|
|
</vn-dialog>
|