32 lines
1.3 KiB
HTML
32 lines
1.3 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block title %}Anmeldung{% endblock %}
|
|
|
|
{% block content %}
|
|
<!-- Main Content -->
|
|
<main class="container mx-auto w-full px-4 my-8 flex-grow flex flex-col">
|
|
<h1 class="page-title">Anmeldung für FET-Mitarbeiter</h1>
|
|
<div class="w-full h-full flex-1 flex justify-center items-center">
|
|
<form action="{% url 'authentications:login' %}" method="POST" class="sm:p-4 sm:w-3/5 md:w-1/2 lg:w-2/5 xl:w-1/3 2xl:w-1/4 grid grid-cols-1 gap-3 sm:gap-6">
|
|
{% csrf_token %}
|
|
|
|
{% include "baseform/non_field_errors.html" %}
|
|
|
|
{% for message in messages %}
|
|
<div class="alert alert-danger">
|
|
<i class="alert-icon fa-solid fa-check-circle"></i>
|
|
<h2 class="alert-title">Fehler:</h2>
|
|
<div class="alert-body">{{ message }}</div>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% include "baseform/text.html" with field=form.username %}
|
|
{% include "baseform/password.html" with field=form.password %}
|
|
|
|
<input type="submit" class="block btn btn-primary" value="Anmelden">
|
|
<input type="hidden" name="next" value="{{ next }}">
|
|
</form>
|
|
</div>
|
|
</main>
|
|
{% endblock %}
|