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.

52 lines
1.7 KiB

6 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. <h1>Set a Password</h1>
  8. <div class="dialog-body">
  9. <p>
  10. Please pick a password for your {{ site_name }} account.
  11. </p>
  12. </div>
  13. <form method="post">
  14. {% csrf_token %}
  15. <div id="set-password-group" class="form-group">
  16. <input
  17. id="password"
  18. type="password"
  19. minlength="8"
  20. class="form-control input-lg"
  21. name="password"
  22. placeholder="pick a password (at least 8 characters)">
  23. <div id="meter">
  24. <div class="s1 s2 s3 s4"></div>
  25. <div class="s2 s3 s4"></div>
  26. <div class="s3 s4"></div>
  27. <div class="s4"></div>
  28. </div>
  29. </div>
  30. <div class="clearfix">
  31. <button type="submit" class="btn btn-lg btn-primary pull-right">
  32. Set Password
  33. </button>
  34. </div>
  35. </form>
  36. </div>
  37. </div>
  38. </div>
  39. {% endblock %}
  40. {% block scripts %}
  41. {% compress js %}
  42. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  43. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  44. <script src="{% static 'js/zxcvbn.js' %}"></script>
  45. <script src="{% static 'js/set-password.js' %}"></script>
  46. {% endcompress %}
  47. {% endblock %}