30 lines
1.3 KiB
Plaintext
30 lines
1.3 KiB
Plaintext
.container
|
|
h1 Settings
|
|
.row
|
|
.col-md-6
|
|
h2 Global
|
|
form.well.well-sm(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
|
|
.col-md-6
|
|
h2 Profiles
|