diff options
author | luxagraf <sng@luxagraf.net> | 2018-11-19 11:52:49 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-11-19 11:52:49 -0600 |
commit | d12a5a018faf9cba5a19ebb1bda79ad2ffbbd69f (patch) | |
tree | 0cca8c4a344b254c092f823ef514856d66a653b5 /design/templates/lib | |
parent | 2ef6414abec4e606d0fd96babc849cc2bde2bb38 (diff) |
updated requirements, rolled in style changes and js
Diffstat (limited to 'design/templates/lib')
-rw-r--r-- | design/templates/lib/login.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/design/templates/lib/login.html b/design/templates/lib/login.html new file mode 100644 index 0000000..de2300d --- /dev/null +++ b/design/templates/lib/login.html @@ -0,0 +1,34 @@ +<h1>Login to {{site.name}}</h1> +{% if form.errors %} +<p>Your username and password didn't match. Please try again.</p> +{% endif %} + +{% if next %} + {% if user.is_authenticated %} + <p>Your account doesn't have access to this page. To proceed, + please login with an account that has access.</p> + {% else %} + <p>Please login to see this page.</p> + {% endif %} +{% endif %} + +<form method="post" action="{% url 'login' %}"> +{% csrf_token %} +<fieldset> + {{ form.username.label_tag }} + {{ form.username }} +</fieldset> +<fieldset> + {{ form.password.label_tag }} + {{ form.password }} +</fieldset> + +<input type="submit" class="btn sm" value="login"> +<input type="hidden" name="next" value="{{ next }}"> +<a href="" >Cancel</a> +</form> + +{# Assumes you setup the password_reset view in your URLconf #} +<hr /> +<p class="text-center">No account yet? <a href="/register/">Sign up</a>.<br> +<a href="{% url 'password_reset' %}">Forgot your password?</a></p> |