{% extends "base.html" %} {% block title %}Profile{% endblock %} {% block page_title %}Profile & Preferences{% endblock %} {% block topbar_actions %} Settings {% endblock %} {% block content %}
Profile
{{ form.hidden_tag() }}
{{ form.display_name.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.display_name(class="form-control", placeholder="Your name") }}
{{ form.email.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.email(class="form-control", placeholder="email@example.com") }}
{{ form.timezone.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.timezone(class="form-select") }}

{{ form.currency.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.currency(class="form-select") }} All transactions use this single currency.
{{ form.groq_model.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.groq_model(class="form-select") }} AI model used for chat and daily insights.

Budget Alerts
{{ form.budget_alerts_enabled(class="form-check-input") }} {{ form.budget_alerts_enabled.label(class="form-check-label", style="font-size:13px;") }}
{% if smtp_ok %} SMTP configured — alerts will go to {{ alert_email }} {% else %} SMTP not configured — set SMTP_HOST, SMTP_USER, SMTP_PASSWORD, ALERT_EMAIL in .env to enable emails. {% endif %}
{% if smtp_ok %}
{{ form.hidden_tag() }}
{% endif %} {{ form.submit(class="btn btn-primary") }} Change Password
Account Info
Username{{ current_user.username }}
Last login{{ current_user.last_login.strftime('%b %d, %Y %H:%M') if current_user.last_login else '—' }}
Member since{{ current_user.created_at.strftime('%b %d, %Y') }}
Currency{{ current_user.currency_symbol }} {{ current_user.currency }}
{% endblock %}