settings.jade 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. extends ../layout
  2. block content
  3. .content.content-alt
  4. .container
  5. .row
  6. .col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
  7. .card
  8. .page-header
  9. h1 Account Settings
  10. .messageArea
  11. .container-fluid
  12. .row
  13. .col-md-5
  14. h3 Update Account Info
  15. form#userSettings
  16. input(type="hidden", name="_csrf", value=csrfToken)
  17. .form-group
  18. label(for='email') Email
  19. input#emailAddress.form-control(type='email', name='email', value=user.email)
  20. .form-group
  21. label(for='firstName').control-label First Name
  22. input#firstName.form-control(type='text', name='first_name', value=user.first_name)
  23. .form-group
  24. label(for='lastName').control-label Last Name
  25. input#lastName.form-control(type='text', name='last_name', value=user.last_name)
  26. .actions
  27. button.btn.btn-primary(type='submit') Update
  28. .col-md-5.col-md-offset-1
  29. h3 Change Password
  30. form#changePasswordForm(method="post", action="/user/password/update")
  31. input(type="hidden", name="_csrf", value=csrfToken)
  32. .form-group
  33. label(for='currentPassword') Current Password
  34. input#currentPassword.form-control(type='password', name='currentPassword', placeholder='*********')
  35. .form-group
  36. label(for='newPassword1') New Password
  37. input#newPassword1.form-control(type='password', name='newPassword1', placeholder='************')
  38. .form-group
  39. label(for='newPassword2') Confirm New Password
  40. input#newPassword2.form-control(type='password', name='newPassword2', placeholder='************')
  41. .actions
  42. button.btn.btn-primary(type='submit') Change
  43. hr.soften
  44. h3 Dropbox Integration
  45. span.small
  46. a(href='/help/kb/dropbox-2') (Learn more)
  47. - if(!userHasDropboxFeature)
  48. .alert.alert-info Dropbox sync is a premium feature    
  49. a.btn.btn-info(href='/user/subscription/plans') Upgrade
  50. - else if(userIsRegisteredWithDropbox)
  51. .alert.alert-success Account is linked!
  52. row
  53. a(href='/dropbox/unlink').btn Unlink Dropbox
  54. - else
  55. a.btn.btn-info(href='/dropbox/beginAuth') Link to dropbox
  56. hr.soften
  57. p
  58. small
  59. | Every few months we send a news letter out summarizing the new features available.<br>
  60. | If you would prefer to not receive this email then you are free to unsubscribe below at any time.&nbsp;
  61. a#unsubscribeFromNewsletter(data-csrf=csrfToken) Click here to Unsubscribe
  62. p Need to leave?
  63. a#deleteUserAccount(data-csrf=csrfToken) Delete your account