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.

83 lines
2.9 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
10 years ago
10 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. Please enter your email address.
  18. Next, we'll send you an email with log-in instructions!
  19. </p>
  20. </div>
  21. {% endif %}
  22. {% if bad_credentials %}
  23. <p class="alert alert-danger">Incorrect email or password.</p>
  24. {% endif %}
  25. <form method="post">
  26. {% csrf_token %}
  27. <div class="form-group">
  28. <div class="input-group input-group-lg">
  29. <div class="input-group-addon">
  30. <span class="glyphicon glyphicon-user"></span>
  31. </div>
  32. <input
  33. type="text"
  34. class="form-control"
  35. id="id_email"
  36. name="email"
  37. value="{{ form.email.value|default:"" }}"
  38. placeholder="Email">
  39. </div>
  40. </div>
  41. {% if not bad_credentials %}
  42. <div class="checkbox" id="password-toggle">
  43. <label>
  44. <input type="checkbox"> I want to use a password
  45. </label>
  46. </div>
  47. {% endif %}
  48. <div id="password-block" class="form-group {% if not bad_credentials %} hide {% endif %}">
  49. <div class="input-group input-group-lg">
  50. <div class="input-group-addon">
  51. <span class="glyphicon glyphicon-lock"></span>
  52. </div>
  53. <input
  54. type="password"
  55. class="form-control"
  56. name="password"
  57. placeholder="password">
  58. </div>
  59. </div>
  60. <div class="clearfix">
  61. <button type="submit" class="btn btn-lg btn-primary pull-right">
  62. Log In
  63. </button>
  64. </div>
  65. </form>
  66. </div>
  67. </div>
  68. </div>
  69. {% endblock %}
  70. {% block scripts %}
  71. {% compress js %}
  72. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  73. <script src="{% static 'js/login.js' %}"></script>
  74. {% endcompress %}
  75. {% endblock %}