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

33 lines
1.2 KiB
HTML
Raw Normal View History

<form name="form" ng-submit="form.$valid && watcher.submit()" pad-medium >
<vn-card>
<vn-vertical pad-large>
<vn-title>Web access</vn-title>
<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>
</vn-vertical>
</vn-card>
<vn-button-bar>
<vn-submit label="Guardar"></vn-submit>
<vn-button label="Cambiar contraseña" vn-dialog="change-pass"></vn-button>
</vn-button-bar>
</form>
<vn-watcher
vn-id="watcher"
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>