You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.5 KiB

  1. {% extends "base.html" %}
  2. {% load hc_extras %}
  3. {% block content %}
  4. <div class="row">
  5. <div class="col-sm-6 col-sm-offset-3">
  6. <div class="hc-dialog">
  7. <h1>Change Account's Email Address</h1>
  8. <div class="dialog-body">
  9. <p>
  10. Your account's email address is used for sending
  11. the sign-in links and monthly reports.
  12. <strong>
  13. Make sure you can receive emails at the new address.
  14. </strong>
  15. Otherwise, you may get locked out of
  16. your {{ site_name }} account.
  17. </p>
  18. {% if request.user.has_usable_password %}
  19. <p>
  20. Note: Changing the email address will also
  21. <strong>reset your current password</strong>
  22. and log you out.
  23. </p>
  24. {% endif %}
  25. </div>
  26. <form class="form-horizontal" method="post">
  27. {% csrf_token %}
  28. <div class="form-group">
  29. <label class="col-sm-3 control-label">Current Email</label>
  30. <div class="col-sm-9">
  31. <input
  32. type="text"
  33. class="form-control"
  34. disabled
  35. value="{{ request.user.email }}">
  36. </div>
  37. </div>
  38. <div class="form-group {{ form.email.css_classes }}">
  39. <label for="ce-email" class="col-sm-3 control-label">New Email</label>
  40. <div class="col-sm-9">
  41. <input
  42. type="email"
  43. class="form-control"
  44. id="ce-email"
  45. name="email"
  46. placeholder="[email protected]">
  47. {% if form.email.errors %}
  48. <div class="help-block">
  49. {{ form.email.errors|join:"" }}
  50. </div>
  51. {% endif %}
  52. </div>
  53. </div>
  54. <div class="clearfix">
  55. <button type="submit" class="btn btn-lg btn-primary pull-right">
  56. Change Email
  57. </button>
  58. </div>
  59. </form>
  60. </div>
  61. </div>
  62. </div>
  63. {% endblock %}