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
  1. {% extends "base.html" %}
  2. {% load compress hc_extras static %}
  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>{% site_name %}</h1>
  15. <div class="dialog-body">
  16. <p>
  17. {% if show_password %}
  18. Please enter 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. name="identity"
  40. value="{{ form.identity.value|default:"" }}"
  41. placeholder="[email protected]">
  42. </div>
  43. </div>
  44. {% if not show_password %}
  45. <div class="checkbox" id="password-toggle">
  46. <label>
  47. <input type="checkbox"> I want to use a password
  48. </label>
  49. </div>
  50. {% endif %}
  51. <div id="password-block" class="form-group {% if not show_password %} hide {% endif %}">
  52. <div class="input-group input-group-lg">
  53. <div class="input-group-addon">
  54. <span class="icon-dots"></span>
  55. </div>
  56. <input
  57. type="password"
  58. class="form-control"
  59. name="password"
  60. placeholder="password">
  61. </div>
  62. </div>
  63. <div class="clearfix">
  64. <button type="submit" class="btn btn-lg btn-primary pull-right">
  65. Log In
  66. </button>
  67. </div>
  68. </form>
  69. </div>
  70. </div>
  71. </div>
  72. {% endblock %}
  73. {% block scripts %}
  74. {% compress js %}
  75. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  76. <script src="{% static 'js/login.js' %}"></script>
  77. {% endcompress %}
  78. {% endblock %}