{% extends "base.html" %} {% block title %}Profile - Travel Records{% endblock %} {% block content %}

👤 User Profile

Manage your account information

{% if current_user.profile_image_url %} Profile Photo {% else %}
{{ current_user.display_name[0].upper() if current_user.display_name else 'U' }}
{% endif %}
{{ current_user.display_name }}

Member since {{ current_user.created_at.strftime('%B %Y') }}

{{ form.hidden_tag() }}
{{ form.username.label(class="form-label") }} {{ form.username(class="form-control" + (" is-invalid" if form.username.errors else "")) }} {% if form.username.errors %}
{% for error in form.username.errors %} {{ error }} {% endfor %}
{% endif %}
Choose a unique username for your account
{{ form.full_name.label(class="form-label") }} {{ form.full_name(class="form-control" + (" is-invalid" if form.full_name.errors else "")) }} {% if form.full_name.errors %}
{% for error in form.full_name.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.email.label(class="form-label") }} {{ form.email(class="form-control" + (" is-invalid" if form.email.errors else "")) }} {% if form.email.errors %}
{% for error in form.email.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.mobile_phone.label(class="form-label") }} {{ form.mobile_phone(class="form-control" + (" is-invalid" if form.mobile_phone.errors else "")) }} {% if form.mobile_phone.errors %}
{% for error in form.mobile_phone.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.submit(class="btn btn-primary") }} 🔒 Change Password Cancel
📊 Account Statistics
{{ current_user.travel_records|length }}

Travel Records

{{ current_user.travel_records|map(attribute='country')|unique|list|length }}

Countries Visited

{% set photo_count = current_user.travel_records|map(attribute='photos')|map('length')|sum %} {{ photo_count }}

Photos Uploaded

{% endblock %}