freeCodeCamp/views/account/profile.jade

97 lines
3.3 KiB
Plaintext
Raw Normal View History

extends ../layout
2013-11-20 13:03:10 +00:00
2013-11-19 18:20:50 +00:00
block content
.page-header
h3 Profile Information
2013-12-05 21:42:30 +00:00
form.form-horizontal(action='/account/profile', method='POST')
2014-01-07 20:55:56 +00:00
.form-group
label.col-sm-2.control-label(for='email') Email
.col-sm-4
2014-01-07 21:32:59 +00:00
input.form-control(type='email', name='email', id='email', value='#{user.email}')
.form-group
label.col-sm-2.control-label(for='name') Name
.col-sm-4
input.form-control(type='text', name='name', id='name', value='#{user.profile.name}')
.form-group
label.col-sm-2.control-label(for='gender') Gender
.col-sm-4
label.radio
input(type='radio', checked=user.profile.gender=='male', name='gender', value='male', data-toggle='radio')
span Male
label.radio
input(type='radio', checked=user.profile.gender=='female', name='gender', value='female', data-toggle='radio')
span Female
.form-group
label.col-sm-2.control-label(for='location') Location
.col-sm-4
input.form-control(type='text', name='location', id='location', value='#{user.profile.location}')
.form-group
label.col-sm-2.control-label(for='website') Website
.col-sm-4
input.form-control(type='text', name='website', id='website', value='#{user.profile.website}')
.form-group
label.col-sm-2.control-label(for='gravatar') Gravatar
.col-sm-4
img(src="#{user.gravatar()}", class='profile', width='100', height='100')
.form-group
input.form-control(type='hidden', name='_csrf', value=token)
.form-group
.col-sm-offset-2.col-sm-4
button.btn.btn.btn-primary(type='submit')
i.fa.fa-magnet
| Update Profile
2014-01-07 20:55:56 +00:00
.page-header
h3 Change Password
2014-01-07 20:55:56 +00:00
form.form-horizontal(action='/account/password', method='POST')
.form-group
label.col-sm-3.control-label(for='password') New 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', name='confirmPassword', id='confirmPassword')
.form-group
2014-02-03 18:08:34 +00:00
input.form-control(type='hidden', name='_csrf', value=token)
.form-group
.col-sm-offset-3.col-sm-4
2014-02-03 23:54:43 +00:00
button.btn.btn.btn-primary(type='submit')
i.fa.fa-keyboard-o
| Change Password
.page-header
h3 Delete Account
2014-01-28 22:35:44 +00:00
p You can delete your account, but keep in mind this action is irreversible.
form(action='/account/delete', method='POST')
2014-02-03 23:54:43 +00:00
button.btn.btn-danger(type='submit')
i.fa.fa-trash-o
| Delete my account
2013-12-05 21:42:30 +00:00
.page-header
h3 Linked Accounts
if user.google
p: a.text-danger(href='/account/unlink/google') Unlink your Google account
else
p: a(href='/auth/google') Link your Google account
if user.facebook
2014-01-07 19:37:23 +00:00
p: a.text-danger(href='/account/unlink/facebook') Unlink your Facebook account
else
p: a(href='/auth/facebook') Link your Facebook account
if user.twitter
2014-01-07 19:37:23 +00:00
p: a.text-danger(href='/account/unlink/twitter') Unlink your Twitter account
else
p: a(href='/auth/twitter') Link your Twitter account
if user.github
2014-01-07 19:37:23 +00:00
p: a.text-danger(href='/account/unlink/github') Unlink your GitHub account
else
p: a(href='/auth/github') Link your GitHub account