Commit f3dc839e authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Added error display to login page.

parent 18a16e23
......@@ -34,7 +34,11 @@ HNRS 110 • Login
action="{% url 'django.contrib.auth.views.login' %}"> {% csrf_token %}
<fieldset>
<div class="form-group">
{% if form.errors %}
<div class="form-group has-error">
{% else %}
<div class="form-group">
{% endif %}
<label class="col-lg-2 control-label" for="username">Username</label>
<div class="col-lg-10">
<input type="username" name="username" id="username"
......@@ -42,7 +46,11 @@ HNRS 110 &bull; Login
</div>
</div>
<div class="form-group">
{% if form.errors %}
<div class="form-group has-error">
{% else %}
<div class="form-group">
{% endif %}
<label class="col-lg-2 control-label" for="password">Password</label>
<div class="col-lg-10">
<input type="password" name="password" id="password"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment