settings.jade 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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.account-settings
  8. .page-header
  9. h1 Account Settings
  10. form-messages(ng-cloak, for="settingsForm")
  11. .alert.alert-success(ng-show="settingsForm.response.success")
  12. | Thanks, your settings have been updated.
  13. form-messages(ng-cloak, for="changePasswordForm")
  14. .container-fluid
  15. .row(ng-cloak)
  16. .col-md-5
  17. h3 Update Account Info
  18. form(async-form="settings", name="settingsForm", action="/user/settings", novalidate)
  19. input(type="hidden", name="_csrf", value=csrfToken)
  20. .form-group
  21. label(for='email') Email
  22. input.form-control(
  23. type='email',
  24. name='email',
  25. placeholder="email@example.com"
  26. required,
  27. ng-model="email",
  28. ng-init="email = #{JSON.stringify(user.email)}"
  29. )
  30. span.small.text-primary(ng-show="settingsForm.email.$invalid && settingsForm.email.$dirty")
  31. | Must be an email address
  32. .form-group
  33. label(for='firstName').control-label First Name
  34. input.form-control(
  35. type='text',
  36. name='first_name',
  37. value=user.first_name
  38. )
  39. .form-group
  40. label(for='lastName').control-label Last Name
  41. input.form-control(
  42. type='text',
  43. name='last_name',
  44. value=user.last_name
  45. )
  46. .actions
  47. button.btn.btn-primary(
  48. type='submit',
  49. ng-disabled="settingsForm.$invalid"
  50. ) Update
  51. .col-md-5.col-md-offset-1
  52. h3 Change Password
  53. form(async-form="changepassword", name="changePasswordForm", action="/user/password/update", novalidate)
  54. input(type="hidden", name="_csrf", value=csrfToken)
  55. .form-group
  56. label(for='currentPassword') Current Password
  57. input.form-control(
  58. type='password',
  59. name='currentPassword',
  60. placeholder='*********',
  61. ng-model="currentPassword",
  62. required
  63. )
  64. span.small.text-primary(ng-show="changePasswordForm.currentPassword.$invalid && changePasswordForm.currentPassword.$dirty")
  65. | Required
  66. .form-group
  67. label(for='newPassword1') New Password
  68. input.form-control(
  69. type='password',
  70. name='newPassword1',
  71. placeholder='*********',
  72. ng-model="newPassword1",
  73. required
  74. )
  75. span.small.text-primary(ng-show="changePasswordForm.newPassword1.$invalid && changePasswordForm.newPassword1.$dirty")
  76. | Required
  77. .form-group
  78. label(for='newPassword2') Confirm New Password
  79. input.form-control(
  80. type='password',
  81. name='newPassword2',
  82. placeholder='*********',
  83. ng-model="newPassword2",
  84. equals="{{newPassword1}}"
  85. )
  86. span.small.text-primary(ng-show="changePasswordForm.newPassword2.$invalid && changePasswordForm.newPassword2.$dirty")
  87. | Doesn't match
  88. .actions
  89. button.btn.btn-primary(
  90. type='submit',
  91. ng-disabled="changePasswordForm.$invalid"
  92. ) Change
  93. hr.soften
  94. h3 Dropbox Integration
  95. span.small
  96. a(href='/help/kb/dropbox-2') (Learn more)
  97. - if(!userHasDropboxFeature)
  98. .alert.alert-info Dropbox sync is a premium feature    
  99. a.btn.btn-info(href='/user/subscription/plans') Upgrade
  100. - else if(userIsRegisteredWithDropbox)
  101. .alert.alert-success Account is linked!
  102. row
  103. a(href='/dropbox/unlink').btn Unlink Dropbox
  104. - else
  105. a.btn.btn-info(href='/dropbox/beginAuth') Link to dropbox
  106. hr.soften
  107. p
  108. small
  109. | Every few months we send a news letter out summarizing the new features available.<br>
  110. | If you would prefer to not receive this email then you are free to unsubscribe below at any time.&nbsp;
  111. a#unsubscribeFromNewsletter(data-csrf=csrfToken) Click here to Unsubscribe
  112. p Need to leave?
  113. a#deleteUserAccount(data-csrf=csrfToken) Delete your account