Semaphore/public/html/users/user.pug
Matej Kramny 80538908a8 update contributing.md
- fix ./make.sh watch
- rename .jade -> .pug
2017-02-22 03:51:23 -08: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