Files
MtoRagSystem/templates/admin/security/login.html.twig
2026-04-13 18:25:05 +02:00

75 lines
2.7 KiB
Twig

{% extends 'admin/base.html.twig' %}
{% block title %}Admin Login{% endblock %}
{% block body %}
<div class="row justify-content-center align-items-center" style="min-height:70vh;">
<div class="col-12 col-md-5 col-lg-4">
<div class="card bg-black border-secondary text-info">
<div class="card-body">
<h1 class="h3 mb-2 text-center text-info">
Heyl Neomeris
</h1>
<h2 class="h6 mb-2 mt-1 text-center text-info">KI/RAG System-Login</h2>
{% if error %}
<div class="alert alert-danger">
{{ error.messageKey|trans(error.messageData, 'security') }}
</div>
{% endif %}
<form method="post" action="{{ path('admin_login') }}">
{# ============================= #}
{# Email #}
{# ============================= #}
<div class="mb-3">
<label class="form-label">E-Mail</label>
<input class="form-control bg-dark text-light border-secondary"
name="_username"
value="{{ last_username }}"
autocomplete="email"
required>
</div>
{# ============================= #}
{# Passwort #}
{# ============================= #}
<div class="mb-4">
<label class="form-label">Passwort</label>
<input class="form-control bg-dark text-light border-secondary"
type="password"
name="_password"
autocomplete="current-password"
required>
</div>
{# CSRF #}
<input type="hidden"
name="_csrf_token"
value="{{ csrf_token('authenticate') }}">
<button class="btn btn-outline-info w-100"
type="submit">
Einloggen
</button>
</form>
</div>
</div>
<div class="text-center mt-3 small text-secondary">
Zugriff nur für autorisierte Personen.
</div>
</div>
</div>
{% endblock %}