Files
myep-team/templates/security/login.html.twig
T

56 lines
2.9 KiB
Twig

{% extends 'base.html.twig' %}
{% block body %}
<div class="w-full h-screen flex flex-col items-center justify-center px-4">
<div class="card w-full max-w-md p-8 pt-10 shadow-[inset_0_8px_0_var(--color-brand)]">
<h1 class="mb-8">
{% include '_partials/_brand.html.twig' %}
</h1>
{% if error %}
{% include '_partials/_alert.html.twig' with { type: 'warning', message: error.messageKey|trans(error.messageData, 'security') } %}
{% endif %}
<form action="{{ path('app_security_login') }}" method="post">
<div class="mb-6">
<label for="username" class="block font-bold leading-6">
E-Mail:
</label>
<input type="email"
id="username"
name="_username"
value="{{ last_username }}"
class="mt-2 block w-full border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-slate-500 placeholder:text-slate-500 focus:ring-2 focus:ring-inset focus:ring-brand-bright sm:text-sm sm:leading-6"
required
autofocus
autocomplete="username">
</div>
<div class="mb-6">
<label for="password" class="block font-bold leading-6">
Passwort:
</label>
<input type="password"
id="password"
name="_password"
class="mt-2 block w-full border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-slate-500 placeholder:text-slate-500 focus:ring-2 focus:ring-inset focus:ring-brand-bright sm:text-sm sm:leading-6"
required
autocomplete="current-password">
</div>
<button type="submit" class="btn w-full">
Login
</button>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
</form>
<div class="pt-4 flex space-x-4">
{% if feature('myep_login') %}
<a href="{{ path('app_myep_auth_init') }}" class="text-sm font-bold text-brand underline underline-offset-2 hover:text-brand-dark">
Login mit MyE&amp;P
</a>
{% endif %}
<a href="{{ path('app_security_password_reset') }}" class="text-sm font-bold text-brand underline underline-offset-2 hover:text-brand-dark">
Passwort vergessen?
</a>
</div>
</div>
</div>
{% endblock %}