sum7/warehost-frontend
sum7
/
warehost-frontend
Archived
1
0
Fork 0
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.
warehost-frontend/public/app/settings.jade

30 lines
1.3 KiB
Plaintext
Raw Normal View History

2016-08-14 13:37:26 +02:00
.container
h1 Settings
.row
.col-md-6
h2 Global
2016-08-17 22:35:25 +02:00
form.well.well-sm(ng-submit="submit()",name="myform")
2016-08-14 13:37:26 +02:00
.form-group
label(for="globalUsername") Username
input.form-control(id="globalUsername",ng-model="session.login.username",readonly)
2016-08-17 22:35:25 +02:00
.form-group(ng-class="{'has-error': (error.fields.indexOf('currentpassword') >= 0)}")
2016-08-14 13:37:26 +02:00
label(for="currentPassword") Current Password
input.form-control(id="currentPassword",type="password",ng-model="obj.currentPassword")
2016-08-17 22:35:25 +02:00
.form-group(ng-class="{'has-error': (error.fields.indexOf('newpassword') >= 0 || !myform.newPassword.$valid)}")
2016-08-14 13:37:26 +02:00
label(for="newPassword") New Password
2016-08-17 22:35:25 +02:00
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)}")
2016-08-14 13:37:26 +02:00
label(for="repeatPassword") Again Password
2016-08-17 22:35:25 +02:00
input.form-control(id="repeatPassword",type="password",name="repeatPassword",ng-model="obj.repeatPassword")
2016-08-14 13:37:26 +02:00
.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