Tidied the errors on the loginform

This commit is contained in:
Tom Price
2014-12-03 22:55:16 +00:00
parent 969a2af4aa
commit eb4e3bdb14

View File

@@ -1,8 +1,6 @@
{% load url from future %}
{% load widget_tweaks %}
{% if form.errors %}
<div class="error">Your username or password was incorrect</div>
{% endif %}
{% include 'form_errors.html' %}
<div class="col-md-4 col-md-offset-4">
<form action="{% url 'login' %}" method="post" role="form">{% csrf_token %}
@@ -16,7 +14,7 @@
</div>
<a href="{% url 'registration_register' %}" class="btn">Register</a>
<a href="{% url 'password_reset' %}" class="btn">Forgotten Password</a>
<input type="submit" value="Login" class="btn btn-primary" />
<input type="hidden" name="next" value="{{next}}" />
<input type="submit" value="Login" class="btn btn-primary"/>
<input type="hidden" name="next" value="{{ next }}"/>
</form>
</div>