{# templates/setup/admin_account.html #} {% extends "base.html" %} {% block title %} Setup Wizarr {% endblock title %} {% block main %}
Wizarr

{{ _("Setup Wizarr") }}

{# flash-level messages (e.g. from validate_on_submit) #} {% with msgs = get_flashed_messages(with_categories=true) %} {% if msgs %} {% for cat, msg in msgs %}

{{ msg }}

{% endfor %} {% endif %} {% endwith %}
{{ form.hidden_tag() }} {# ⬅ CSRF + any other hidden fields #} {# Username #}
{{ form.username.label(class="block mb-2 text-sm font-medium text-gray-900 dark:text-white") }} {{ form.username(class="w-full p-2.5 rounded-lg border bg-gray-50 dark:bg-gray-700 dark:border-gray-600 dark:text-white") }} {% for err in form.username.errors %}

{{ err }}

{% endfor %}
{# Password #}
{{ form.password.label(class="block mb-2 text-sm font-medium text-gray-900 dark:text-white") }} {{ form.password(class="w-full p-2.5 rounded-lg border bg-gray-50 dark:bg-gray-700 dark:border-gray-600 dark:text-white") }} {% for err in form.password.errors %}

{{ err }}

{% endfor %}
{# Confirm #}
{{ form.confirm.label(class="block mb-2 text-sm font-medium text-gray-900 dark:text-white") }} {{ form.confirm(class="w-full p-2.5 rounded-lg border bg-gray-50 dark:bg-gray-700 dark:border-gray-600 dark:text-white") }} {% for err in form.confirm.errors %}

{{ err }}

{% endfor %}
{% endblock main %}