[FIX] putting the labels of the forms above the fields

This commit is contained in:
altf4arnold 2024-05-07 16:24:33 +02:00
parent b4486b4d30
commit 957df53b52
No known key found for this signature in database
GPG Key ID: AE66543374E41C89

View File

@ -46,7 +46,19 @@
<input type="hidden" name="next" value="{{ request.POST.next }}"/>
{% endif %}
{% render_form form %}
{% for field in form %}
<div class="form-group">
<label for="{{ field.id_for_label }}">{{ field.label }}</label>
{{ field }}
{% if field.errors %}
<ul class="errorlist">
{% for error in field.errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endfor %}
<div class="form-footer">
<button type="submit" class="btn btn-primary w-100">
@ -55,6 +67,8 @@
</div>
</form>
</div>
</div>
{# SSO login #}
{% if auth_backends %}