{% if error %}
    <div>{{ error.message }}</div>
{% endif %}

<form action="{{ path('login_check') }}" method="post">
    <label for="username">Vartotojo vardas:</label>
    <input type="text" id="username" name="_username" value="{{ last_username }}" />
    
    <label for="password">Slaptažodis:</label>
    <input type="password" id="password" name="_password" />

    <button type="submit">Prisijungti</button>
</form>

{% extends "::base.html.twig" %}

{% block all_content %}

{% if error %}
    <div>{{ error.message }}</div>
{% endif %}

<form action="{{ path('login_check') }}" method="post">
    <label for="username">Vartotojo vardas:</label>
    <input type="text" id="username" name="_username" value="{{ last_username }}" />
    
    <label for="password">Slaptažodis:</label>
    <input type="password" id="password" name="_password" />

    <button type="submit">Prisijungti</button>
</form>

{% endblock %}

Extend the base template for login form
Extend the base template for login form
