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 %}
{% if not user.is_authenticated %}
<form method="post" action="{% url 'login' %}">
<form class="card" method="post" action="{% url 'login' %}">
{% csrf_token %}
<table>
<tr>
<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" %} />
{{ form.as_p }}
<input class="btn" type="submit" value={% translate "Einloggen" %} />
<input type="hidden" name="next" value="{{ next }}" />
</form>

View File

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