login template: use _form.html

This commit is contained in:
Élie Bouttier 2016-07-22 17:48:23 +02:00
parent c3c09c1674
commit 7e981a1de9
1 changed files with 1 additions and 9 deletions

View File

@ -15,15 +15,7 @@
<div class="row">
<div class="col-md-offset-3 col-md-6">
<div class="well">
<form action="" method="post" role="form">
{% bootstrap_form form %}
{% csrf_token %}
<div class="form-group text-center">
<button type="submit" class="btn btn-primary">Submit</button>
<a href="{% url 'password_reset' %}" class="btn btn-warning">Reset your password</a>
<a href="{% if request.GET.prev %}{{ request.GET.prev }}{% else %}{% url 'home' %}{% endif %}" class="btn btn-default">Cancel</a>
</div>
</form>
{% include '_form.html' %}
</div>
</div>
</div>