This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2016-08-14 13:37:26 +02:00
|
|
|
.container
|
|
|
|
h1 Settings
|
2016-09-03 13:24:54 +02:00
|
|
|
form(ng-submit="submit()",name="myform")
|
|
|
|
.form-group
|
|
|
|
label(for="globalUsername") Username
|
|
|
|
input.form-control(id="globalUsername",ng-model="session.login.username",readonly)
|
|
|
|
.form-group(ng-class="{'has-error': (error.fields.indexOf('currentpassword') >= 0)}")
|
|
|
|
label(for="currentPassword") Current Password
|
|
|
|
input.form-control(id="currentPassword",type="password",ng-model="obj.currentPassword")
|
|
|
|
.form-group(ng-class="{'has-error': (error.fields.indexOf('newpassword') >= 0 || !myform.newPassword.$valid)}")
|
|
|
|
label(for="newPassword") New Password
|
|
|
|
input.form-control(id="newPassword",type="password",name="newPassword",ng-model="obj.newPassword",ng-minlength="3")
|
|
|
|
.form-group(ng-class="{'has-error': (obj.newPassword != obj.repeatPassword && myform.repeatPassword.$dirty)}")
|
|
|
|
label(for="repeatPassword") Again Password
|
|
|
|
input.form-control(id="repeatPassword",type="password",name="repeatPassword",ng-model="obj.repeatPassword")
|
|
|
|
.row
|
|
|
|
.col-xs-6
|
|
|
|
button.btn.btn-primary(type="submit")
|
|
|
|
span.glyphicon.glyphicon-floppy-disk
|
|
|
|
| Save
|
|
|
|
.col-xs-6.text-right
|
|
|
|
a.btn.btn-danger(ng-click="delete()")
|
|
|
|
span.glyphicon.glyphicon-trash
|
|
|
|
| Delete
|