{% extends 'layouts/base.html' %}

{% load i18n %}
{% load pyaa %}

{% block content %}

{% url 'account_profile' as url_account_profile %}

<div class="container mx-auto px-4 py-8 max-w-xl">
    <h1 class="text-2xl font-bold text-center mb-6">
        {% translate "title.account-update-profile" %}
    </h1>

    <form method="post" novalidate>
        {% csrf_token %}

        {% element fields form=form %}
        {% endelement %}

        <div class="flex flex-col gap-2 mt-4">
            <button type="submit" class="btn btn-primary">
                {% translate "button.update" %}
            </button>
            <a href="{{ url_account_profile }}" class="btn btn-ghost">
                {% translate "button.cancel" %}
            </a>
        </div>
    </form>
</div>

{% endblock content %}
