|
|
|
|
@ -8,25 +8,25 @@
|
|
|
|
|
{{ parent() }}
|
|
|
|
|
<main>
|
|
|
|
|
<div class="loginDiv">
|
|
|
|
|
{% block body %}
|
|
|
|
|
{% if error %}
|
|
|
|
|
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<form action="{{ path('users_login') }}" method="post">
|
|
|
|
|
<label for="username">Uživatelské jméno</label>
|
|
|
|
|
<input type="text" name="username" id="username" value="{{ last_username }}" required/>
|
|
|
|
|
<label for="password">Heslo</label>
|
|
|
|
|
<input type="password" name="password" id="password" placeholder="********" required/>
|
|
|
|
|
<label for="username">Email:</label>
|
|
|
|
|
<input type="text" id="username" name="_username" value="{{ last_username }}">
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
|
|
|
|
|
<label for="password">Heslo:</label>
|
|
|
|
|
<input
|
|
|
|
|
type="password" id="password" name="_password">
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
<input type="checkbox" name="_remember_me" checked>
|
|
|
|
|
Zůstat přihlášen
|
|
|
|
|
</label>
|
|
|
|
|
{# If you want to control the URL the user is redirected to on success
|
|
|
|
|
<input type="hidden" name="_target_path" value="/account"> #}
|
|
|
|
|
|
|
|
|
|
<input type="submit" value="Přihlásit se"/>
|
|
|
|
|
<button type="submit">Přihlásit se</button>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
{% if error %}
|
|
|
|
|
<p class="login-form__error">{{ error.messageKey|trans(error.messageData, 'security') }}</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
</div>
|
|
|
|
|
</main>
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|