Use a Bootstrap alert class on failed login

(imported from commit d0e0048e4f3b99f9e2512c8b7f7249b6fa5201a3)
This commit is contained in:
Keegan McAllister 2012-08-29 11:47:55 -04:00
parent 3ef5334d9b
commit 3e45bd2ccc
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ autofocus('#id_username');
<h1>Log in</h1> <h1>Log in</h1>
{% if form.errors %} {% if form.errors %}
<p>Your username and password didn't match. Please try again.</p> <div class="alert alert-error">
Your username and password didn't match. Please try again.
</div>
{% endif %} {% endif %}
<form method="post" action="{% url django.contrib.auth.views.login %}?next={{ request.get_full_path }}"> <form method="post" action="{% url django.contrib.auth.views.login %}?next={{ request.get_full_path }}">