profile.jade 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. extends ../layout
  2. block content
  3. .container
  4. .page-header
  5. h3 Profile Information
  6. form.form-horizontal(action='/account/profile', method='POST')
  7. input(type='hidden', name='_csrf', value=_csrf)
  8. .form-group
  9. label.col-sm-3.control-label(for='email') Email
  10. .col-sm-7
  11. input.form-control(type='email', name='email', id='email', value='#{user.email}')
  12. .form-group
  13. label.col-sm-3.control-label(for='name') Name
  14. .col-sm-7
  15. input.form-control(type='text', name='name', id='name', value='#{user.profile.name}')
  16. .form-group
  17. label.col-sm-3.control-label(for='gender') Gender
  18. .col-sm-4
  19. label.radio.col-sm-4
  20. input(type='radio', checked=user.profile.gender=='male', name='gender', value='male', data-toggle='radio')
  21. span Male
  22. label.radio.col-sm-4
  23. input(type='radio', checked=user.profile.gender=='female', name='gender', value='female', data-toggle='radio')
  24. span Female
  25. .form-group
  26. label.col-sm-3.control-label(for='location') Location
  27. .col-sm-7
  28. input.form-control(type='text', name='location', id='location', value='#{user.profile.location}')
  29. .form-group
  30. label.col-sm-3.control-label(for='website') Website
  31. .col-sm-7
  32. input.form-control(type='text', name='website', id='website', value='#{user.profile.website}')
  33. .form-group
  34. label.col-sm-3.control-label(for='gravatar') Gravatar
  35. .col-sm-4
  36. img(src="#{user.gravatar()}", class='profile', width='100', height='100')
  37. .form-group
  38. .col-sm-offset-3.col-sm-4
  39. button.btn.btn.btn-primary(type='submit')
  40. i.fa.fa-pencilr
  41. | Update Profile
  42. .page-header
  43. h3 Change Password
  44. form.form-horizontal(action='/account/password', method='POST')
  45. input(type='hidden', name='_csrf', value=_csrf)
  46. .form-group
  47. label.col-sm-3.control-label(for='password') New Password
  48. .col-sm-7
  49. input.form-control(type='password', name='password', id='password')
  50. .form-group
  51. label.col-sm-3.control-label(for='confirmPassword') Confirm Password
  52. .col-sm-7
  53. input.form-control(type='password', name='confirmPassword', id='confirmPassword')
  54. .form-group
  55. .col-sm-offset-3.col-sm-4
  56. button.btn.btn-primary(type='submit')
  57. i.fa.fa-lock
  58. | Change Password
  59. .page-header
  60. h3 Delete Account
  61. form.form-horizontal(action='/account/delete', method='POST')
  62. .form-group
  63. p.col-sm-offset-3.col-sm-4 You can delete your account, but keep in mind this action is irreversible.
  64. input(type='hidden', name='_csrf', value=_csrf)
  65. .col-sm-offset-3.col-sm-4
  66. button.btn.btn-danger(type='submit')
  67. i.fa.fa-trash
  68. | Delete my account
  69. .page-header
  70. h3 Linked Accounts
  71. .form-horizontal
  72. .form-group
  73. .col-sm-offset-3.col-sm-4
  74. if user.instagram
  75. p: a.text-danger(href='/account/unlink/instagram') Unlink your Instagram account
  76. else
  77. p: a(href='/auth/instagram') Link your Instagram account
  78. .col-sm-offset-3.col-sm-4
  79. if user.google
  80. p: a.text-danger(href='/account/unlink/google') Unlink your Google account
  81. else
  82. p: a(href='/auth/google') Link your Google account
  83. .col-sm-offset-3.col-sm-4
  84. if user.facebook
  85. p: a.text-danger(href='/account/unlink/facebook') Unlink your Facebook account
  86. else
  87. p: a(href='/auth/facebook') Link your Facebook account
  88. .col-sm-offset-3.col-sm-4
  89. if user.twitter
  90. p: a.text-danger(href='/account/unlink/twitter') Unlink your Twitter account
  91. else
  92. p: a(href='/auth/twitter') Link your Twitter account
  93. .col-sm-offset-3.col-sm-4
  94. if user.github
  95. p: a.text-danger(href='/account/unlink/github') Unlink your GitHub account
  96. else
  97. p: a(href='/auth/github') Link your GitHub account
  98. .col-sm-offset-3.col-sm-4
  99. if user.linkedin
  100. p: a.text-danger(href='/account/unlink/linkedin') Unlink your LinkedIn account
  101. else
  102. p: a(href='/auth/linkedin') Link your LinkedIn account