profile.jade 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. extends ../layout
  2. block content
  3. section#partial
  4. .container
  5. .row
  6. .col-sm-8.col-sm-offset-2.text-center
  7. h3 Profile
  8. hr
  9. .row
  10. form.form-horizontal(action='/account/profile', method='POST')
  11. input(type='hidden', name='_csrf', value=_csrf)
  12. .form-group
  13. label.col-sm-3.control-label(for='email') Email
  14. .col-sm-7
  15. input.form-control(type='email', name='email', id='email', value='#{user.email}')
  16. .form-group
  17. label.col-sm-3.control-label(for='name') Name
  18. .col-sm-7
  19. input.form-control(type='text', name='name', id='name', value='#{user.profile.name}')
  20. .form-group
  21. label.col-sm-3.control-label(for='username') Username
  22. .col-sm-7
  23. input.form-control(type='text', name='username', id='username', value='#{user.profile.username}')
  24. .form-group
  25. label.col-sm-3.control-label(for='location') Location
  26. .col-sm-7
  27. input.form-control(type='text', name='location', id='location', value='#{user.profile.location}')
  28. .form-group
  29. label.col-sm-3.control-label(for='website') Website
  30. .col-sm-7
  31. input.form-control(type='text', name='website', id='website', value='#{user.profile.website}')
  32. .form-group
  33. label.col-sm-3.control-label(for='bio') Bio
  34. .col-sm-7
  35. input.form-control(type='text', name='bio', id='bio', value='#{user.profile.bio}')
  36. .form-group
  37. label.col-sm-3.control-label(for='gravatar') Gravatar
  38. .col-sm-4
  39. img(src="#{user.gravatar()}", class='profile', width='100', height='100')
  40. .form-group
  41. .col-sm-offset-3.col-sm-4
  42. button.btn.btn.btn-primary(type='submit')
  43. i.fa.fa-pencilr
  44. | Update Profile
  45. .row
  46. .col-sm-8.col-sm-offset-2.text-center
  47. h3 Password
  48. hr
  49. .row
  50. form.form-horizontal(action='/account/password', method='POST')
  51. input(type='hidden', name='_csrf', value=_csrf)
  52. .form-group
  53. label.col-sm-3.control-label(for='password') New Password
  54. .col-sm-7
  55. input.form-control(type='password', name='password', id='password')
  56. .form-group
  57. label.col-sm-3.control-label(for='confirmPassword') Confirm Password
  58. .col-sm-7
  59. input.form-control(type='password', name='confirmPassword', id='confirmPassword')
  60. .form-group
  61. .col-sm-offset-3.col-sm-4
  62. button.btn.btn-primary(type='submit')
  63. i.fa.fa-lock
  64. | Change Password
  65. .row
  66. .col-sm-8.col-sm-offset-2.text-center
  67. h3 Delete Account
  68. hr
  69. .row
  70. form.form-horizontal(action='/account/delete', method='POST')
  71. .form-group
  72. p.col-sm-offset-3.col-sm-4 You can delete your account, but keep in mind this action is irreversible.
  73. input(type='hidden', name='_csrf', value=_csrf)
  74. .col-sm-offset-3.col-sm-4
  75. button.btn.btn-danger(type='submit')
  76. i.fa.fa-trash
  77. | Delete my account