{% extends 'base.html.twig' %}

{% block title %}
	Upravit profil
{% endblock %}

{% block body %}
	{{ parent() }}
	<main>
		<div class="loginDiv">
            <h1>Uživatel: <strong>{{ app.user.email }}</strong></h1>
			{{ form_start(form) }}
			{{ form_row(form.password) }}

			<button type="submit">Změnit heslo</button>
			{{ form_end(form, {'render_rest': false}) }}
			<div id="accountButtonsDiv">
				<a id="logoutBtn" href="{{ path('users_logout') }}">Odhlásit se</a>
				<a id="deleteBtn" href="{{ path('users_remove', {'id': app.user.id}) }}">Smazat uživatelský účet</a>
			</div>
		</div>
	</main>
{% endblock %}
