feat: Use card style for login and password reset form

This commit is contained in:
moanos [he/him] 2024-08-04 13:10:14 +02:00
parent 9216009d3d
commit 9527a281ff
2 changed files with 4 additions and 13 deletions

View File

@ -15,19 +15,10 @@
{% endif %} {% endif %}
{% if not user.is_authenticated %} {% if not user.is_authenticated %}
<form method="post" action="{% url 'login' %}"> <form class="card" method="post" action="{% url 'login' %}">
{% csrf_token %} {% csrf_token %}
<table> {{ form.as_p }}
<tr> <input class="btn" type="submit" value={% translate "Einloggen" %} />
<td>{{ form.username.label_tag }}</td>
<td>{{ form.username }}</td>
</tr>
<tr>
<td>{{ form.password.label_tag }}</td>
<td>{{ form.password }}</td>
</tr>
</table>
<input class="btn2" type="submit" value={% translate "Einloggen" %} />
<input type="hidden" name="next" value="{{ next }}" /> <input type="hidden" name="next" value="{{ next }}" />
</form> </form>

View File

@ -2,7 +2,7 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
<form action="" method="post"> <form class=card action="" method="post">
{% csrf_token %} {% csrf_token %}
{% if form.email.errors %} {% if form.email.errors %}
{{ form.email.errors }} {{ form.email.errors }}