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.

87 lines
3.0 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
8 years ago
10 years ago
10 years ago
8 years ago
10 years ago
10 years ago
  1. {% extends "base.html" %}
  2. {% load compress staticfiles %}
  3. {% block content %}
  4. <div class="row">
  5. <div class="col-sm-6 col-sm-offset-3">
  6. <div class="hc-dialog">
  7. {% if bad_link %}
  8. <h1>Incorrect Login Link</h1>
  9. <div class="dialog-body">
  10. <p>The login link you just used is either incorrect or expired.</p>
  11. <p>Please use the form below to request a fresh login link:</p>
  12. </div>
  13. {% else %}
  14. <h1>Health Checks</h1>
  15. <div class="dialog-body">
  16. <p>
  17. {% if show_password %}
  18. Please entery your email address and password.
  19. {% else %}
  20. Please enter your email address.
  21. Next, we'll send you an email with log-in instructions!
  22. {% endif %}
  23. </p>
  24. </div>
  25. {% endif %}
  26. {% if bad_credentials %}
  27. <p class="alert alert-danger">Incorrect email or password.</p>
  28. {% endif %}
  29. <form method="post">
  30. {% csrf_token %}
  31. <div class="form-group">
  32. <div class="input-group input-group-lg">
  33. <div class="input-group-addon">
  34. <span class="icon-mail"></span>
  35. </div>
  36. <input
  37. type="text"
  38. class="form-control"
  39. id="id_email"
  40. name="email"
  41. value="{{ form.email.value|default:"" }}"
  42. placeholder="Email">
  43. </div>
  44. </div>
  45. {% if not show_password %}
  46. <div class="checkbox" id="password-toggle">
  47. <label>
  48. <input type="checkbox"> I want to use a password
  49. </label>
  50. </div>
  51. {% endif %}
  52. <div id="password-block" class="form-group {% if not show_password %} hide {% endif %}">
  53. <div class="input-group input-group-lg">
  54. <div class="input-group-addon">
  55. <span class="icon-dots"></span>
  56. </div>
  57. <input
  58. type="password"
  59. class="form-control"
  60. name="password"
  61. placeholder="password">
  62. </div>
  63. </div>
  64. <div class="clearfix">
  65. <button type="submit" class="btn btn-lg btn-primary pull-right">
  66. Log In
  67. </button>
  68. </div>
  69. </form>
  70. </div>
  71. </div>
  72. </div>
  73. {% endblock %}
  74. {% block scripts %}
  75. {% compress js %}
  76. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  77. <script src="{% static 'js/login.js' %}"></script>
  78. {% endcompress %}
  79. {% endblock %}