2013-11-19 13:20:50 -05:00
|
|
|
extends layout
|
2013-11-20 08:03:10 -05:00
|
|
|
|
2013-11-19 13:20:50 -05:00
|
|
|
block content
|
2013-12-05 16:42:30 -05:00
|
|
|
ul.nav.nav-tabs
|
|
|
|
li.active
|
|
|
|
a(href='#basic', data-toggle='tab') Basic Info
|
|
|
|
li
|
|
|
|
a(href='#settings', data-toggle='tab') Settings
|
|
|
|
.tab-content
|
|
|
|
#basic.tab-pane.fade.active.in
|
2013-12-12 13:55:12 -05:00
|
|
|
.pahe-header
|
|
|
|
h3 Profile Information
|
2013-12-05 23:53:14 -05:00
|
|
|
form.form-horizontal(action='/account/profile', method='POST')
|
2013-12-05 16:42:30 -05:00
|
|
|
.form-group
|
|
|
|
label.col-sm-2.control-label(for='name') Name
|
|
|
|
.col-sm-4
|
2013-12-05 23:53:14 -05:00
|
|
|
input.form-control(type='text', name='name', id='name', value='#{user.profile.name}')
|
2013-12-06 00:18:39 -05:00
|
|
|
.form-group
|
|
|
|
label.col-sm-2.control-label(for='name') Gender
|
|
|
|
.col-sm-4
|
|
|
|
label.radio-inline
|
2013-12-06 00:54:22 -05:00
|
|
|
input(checked=user.profile.gender=='male', name='gender', type='radio', value='male')
|
2013-12-06 00:18:39 -05:00
|
|
|
span Male
|
|
|
|
label.radio-inline
|
2013-12-06 00:54:22 -05:00
|
|
|
input(checked=user.profile.gender=='female', name='gender', type='radio', value='female')
|
2013-12-06 00:18:39 -05:00
|
|
|
span Female
|
2013-12-05 16:42:30 -05:00
|
|
|
.form-group
|
|
|
|
label.col-sm-2.control-label(for='email') Email
|
|
|
|
.col-sm-4
|
2013-12-05 23:53:14 -05:00
|
|
|
input.form-control(type='email', name='email', id='email', value='#{user.profile.email}')
|
2013-12-05 16:42:30 -05:00
|
|
|
.form-group
|
|
|
|
label.col-sm-2.control-label(for='location') Location
|
|
|
|
.col-sm-4
|
2013-12-05 23:53:14 -05:00
|
|
|
input.form-control(type='text', name='location', id='location', value='#{user.profile.location}')
|
2013-12-05 16:42:30 -05:00
|
|
|
.form-group
|
|
|
|
label.col-sm-2.control-label(for='website') Website
|
|
|
|
.col-sm-4
|
2013-12-05 23:53:14 -05:00
|
|
|
input.form-control(type='text', name='website', id='website', value='#{user.profile.website}')
|
2013-12-05 16:42:30 -05:00
|
|
|
.form-group
|
2013-12-07 16:06:36 -05:00
|
|
|
.col-sm-offset-2.col-sm-4
|
|
|
|
button.btn.btn.btn-primary(type='submit') Update Profile
|
2013-12-05 16:42:30 -05:00
|
|
|
|
|
|
|
#settings.tab-pane.fade
|
2013-12-12 13:55:12 -05:00
|
|
|
.page-header
|
|
|
|
h3 Change Password
|
2013-12-07 15:14:28 -05:00
|
|
|
form.form-horizontal(action='/account/profile', method='POST')
|
|
|
|
.form-group
|
|
|
|
label.col-sm-3.control-label(for='password') Password
|
|
|
|
.col-sm-4
|
|
|
|
input.form-control(type='password', name='password', id='password')
|
|
|
|
.form-group
|
|
|
|
label.col-sm-3.control-label(for='confirmPassword') Confirm Password
|
|
|
|
.col-sm-4
|
|
|
|
input.form-control(type='password', id='confirmPassword')
|
|
|
|
.form-group
|
|
|
|
.col-sm-offset-3.col-sm-4
|
2013-12-12 13:55:12 -05:00
|
|
|
button.btn.btn.btn-primary(type='submit') Change Password
|
2013-12-07 15:21:08 -05:00
|
|
|
.page-header
|
|
|
|
h3 Delete Account
|
2013-12-12 13:55:12 -05:00
|
|
|
p You can delete your account, but keep in mind this action is irreversiable.
|
|
|
|
form(action='/account/delete', method='POST')
|
|
|
|
button.btn.btn-danger(type='submit') Delete my account
|
2013-12-05 16:42:30 -05:00
|
|
|
|
2013-12-07 16:06:36 -05:00
|
|
|
.page-header
|
|
|
|
h3 Linked Accounts
|
2013-12-12 13:55:12 -05:00
|
|
|
p
|
|
|
|
a.text-danger(href='#') Unlink your Google account
|
|
|
|
p
|
|
|
|
a(href='#') Link your Facebook account
|
|
|
|
p
|
|
|
|
a(href='#') Link your Twitter account
|
|
|
|
p
|
|
|
|
a(href='#') Link your GitHub account
|
2013-12-07 16:06:36 -05:00
|
|
|
|
2013-11-19 13:20:50 -05:00
|
|
|
if messages.length
|
|
|
|
.alert.alert-danger
|
|
|
|
for message in messages
|
2013-12-06 01:14:10 -05:00
|
|
|
div= message
|