Use Django Crispy forms

This commit is contained in:
Alexandre Iooss 2021-10-08 11:21:05 +02:00
parent 3e64f02dea
commit b9013c4eb3
7 changed files with 33 additions and 21 deletions

View file

@ -2,7 +2,7 @@
{% comment %}
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% load i18n %}
{% load i18n crispy_forms_tags %}
{% block content %}
<div class="card bg-light">
@ -14,8 +14,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
<form method="post">
{% csrf_token %}
{{ form }}
<input class="btn btn-primary" type="submit" value="{% trans 'Reset my password' %}">
{{ form|crispy }}
<input class="btn btn-primary mt-4" type="submit" value="{% trans 'Reset my password' %}">
</form>
</div>
</div>