diff options
author | Dan McGee <dan@archlinux.org> | 2015-01-13 18:17:27 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2015-01-13 18:24:56 -0600 |
commit | 5a31b868715dbd1a4e7fd87f0f9f04e2c8395391 (patch) | |
tree | c10f736a66080cc07f5514db2686c792d717ad47 /templates | |
parent | 1edc33fd73ba588dea8765cd2d9a936f98d7dc1e (diff) |
Slight tweaks to login and logout pages
Turns out has_errors hasn't worked since Django pre-1.0, wow. Remove
that old code and clean up some other small things while we're in there.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/registration/login.html | 10 | ||||
-rw-r--r-- | templates/registration/logout.html | 5 |
2 files changed, 5 insertions, 10 deletions
diff --git a/templates/registration/login.html b/templates/registration/login.html index 82f74f58..b5894319 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -5,21 +5,15 @@ {% block content %} <div id="dev-login" class="box"> - <h2>Developer Login</h2> - {% if form.has_errors %} - <p class="login-error">Your username and password didn't match. Please try again.</p> - {% endif %} - <form id="dev-login-form" method="post">{% csrf_token %} <fieldset> - <legend>Enter login credentials</legend> + <legend>Please enter your credentials to login.</legend> {{ form.as_p }} - <p><label></label> <input type="submit" value="Login" /></p> + <p><label></label><input type="submit" value="Login"/></p> </fieldset> </form> - </div> {% endblock %} diff --git a/templates/registration/logout.html b/templates/registration/logout.html index 50b3574b..84bbff94 100644 --- a/templates/registration/logout.html +++ b/templates/registration/logout.html @@ -1,11 +1,12 @@ {% extends "base.html" %} + {% block title %}Arch Linux - Logout successful{% endblock %} {% block content %} <div id="dev-logout" class="box"> <h2>Developer Logout</h2> - <p>Logout was successful.<p> + <p>Logout was successful. + <a href='{% url 'login' %}'>Click here to login again.</a></p> </div> {% endblock %} - |