LSBC/templates/login/index.html.twig

32 lines
879 B
Twig

{% 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">
<label for="username">Email:</label>
<input type="text" id="username" name="_username" value="{{ last_username }}">
<label for="password">Password:</label>
<input type="password" id="password" name="_password">
<input type="hidden" name="_target_path" value="/manage/podcasts">
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<button type="submit" class="btn btn-primary">Login</button>
</form>
{% endblock %}