Semaphore/public/html/users/user.jade
Matej Kramny 2ab74b1768 Fix new user modal
- Fixes #124
2016-06-13 15:40:39 -07:00

27 lines
1.0 KiB
Plaintext

.container-fluid: .row: .col-sm-6.col-lg-4.col-sm-offset-3.col-lg-offset-4
h3.text-center {{ user.name }}
hr
form.form-horizontal
.form-group
label.control-label.col-sm-4 Name
.col-sm-8: input.form-control(type="text" placeholder="Your name" ng-model="user.name")
.form-group
label.control-label.col-sm-4 Username
.col-sm-8: input.form-control(type="text" placeholder="Username" ng-model="user.username")
.form-group
label.control-label.col-sm-4 Email
.col-sm-8: input.form-control(type="email" placeholder="Email address" ng-model="user.email")
.form-group
label.control-label.col-sm-4 Password
.col-sm-8: input.form-control(type="password" placeholder="Enter new password" ng-model="user.password")
.form-group: .col-sm-8.col-sm-offset-4
button.btn.btn-success(ng-click="updateUser()") Update Profile
button.btn.btn-default(ng-if="$state.includes('users.user')" ui-sref="users.list") back
hr(ng-if="!is_self")
.row(ng-if="!is_self")
.col-sm-8.col-sm-offset-4
button.btn.btn-danger(ng-click="deleteUser()") Delete user