LSBC/templates/login/index.html.twig

30 lines
957 B
Twig
Raw Normal View History

{% extends 'base.html.twig' %}
{% block title %}Login{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style>
form { display: flex; flex-direction: column; gap: 0.5em; }
</style>
{% endblock %}
{% block body %}
<h1>Login</h1>
{% if error %}
<p>{{ error.messageKey|trans(error.messageData, 'security') }}</p>
{% endif %}
<form action="{{ path('app_login') }}" method="post">
2024-02-25 22:51:40 +01:00
<label for="username" class="form-label">Email:</label>
<input type="text" id="username" name="_username" value="{{ last_username }}" class="form-control">
2024-02-25 22:51:40 +01:00
<label for="password" class="form-label">Password:</label>
<input type="password" id="password" name="_password" class="form-control">
2023-10-14 18:26:09 +02:00
<input type="hidden" name="_target_path" value="/manage/podcasts">
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
2024-02-25 20:18:24 +01:00
<button type="submit" class="btn btn-primary">Login</button>
</form>
{% endblock %}