{% extends 'portal_base.html' %} {% load static i18n mytags crispy_forms_tags %} {% block title %}{% trans "My Dashboard" %} - ATS{% endblock %} {% block customCSS %} {% endblock %} {% block content %}
{# Header: Larger, more dynamic on large screens. Stacks cleanly on mobile. #}

{% trans "Your Applicant Dashboard" %}

{% comment %} {% trans "Update Profile" %} {% endcomment %}
{# Applicant Quick Overview Card: Use a softer background color #}
{% trans 'Profile Picture' %}

{{ applicant.full_name|default:"Applicant Name" }}

{{ applicant.email }}

{# ================================================= #} {# MAIN TABBED INTERFACE #} {# ================================================= #}
{# Tab Navigation: Used nav-scroll for responsiveness #} {# Tab Content #}

{% trans "Basic Information" %}

  • {% trans "First Name" %}
    {{ applicant.first_name|default:"" }}
  • {% trans "Last Name" %}
    {{ applicant.last_name|default:"" }}
  • {% if applicant.middle_name %}
  • {% trans "Middle Name" %}
    {{ applicant.middle_name }}
  • {% endif %}
  • {% trans "Email" %}
    {{ applicant.email|default:"" }}

{% trans "Contact Information" %}

  • {% trans "Phone" %}
    {{ applicant.phone|default:"" }}
  • {% if applicant.address %}
  • {% trans "Address" %}
    {{ applicant.address|linebreaksbr }}
  • {% endif %} {% if applicant.linkedin_profile %}
  • {% trans "LinkedIn Profile" %}
    {% trans "View Profile" %}
  • {% endif %}

{% trans "Personal Details" %}

  • {% trans "Date of Birth" %}
    {{ applicant.date_of_birth|date:"M d, Y"|default:"" }}
  • {% trans "Gender" %}
    {{ applicant.get_gender_display|default:"" }}
  • {% trans "Nationality" %}
    {{ applicant.get_nationality_display|default:"" }}

{% trans "Professional Information" %}

    {% if applicant.user.designation %}
  • {% trans "Designation" %}
    {{ applicant.user.designation }}
  • {% endif %} {% if applicant.gpa %}
  • {% trans "GPA" %}
    {{ applicant.gpa }}
  • {% endif %}
{% comment %}
{% trans "Use the 'Update Profile' button above to edit these details." %}
{% endcomment %} {% comment %}
{% endcomment %} {% comment %}

{% trans "Quick Actions" %}

{% endcomment %}

{% trans "Application Tracking" %}

{% if applications %}
{% for application in applications %}
{{ application.job.title }}

{% trans "Applied" %}: {{ application.created_at|date:"d M Y" }}

{% trans "Current Stage" %} {{ application.stage }}
{% trans "Status" %} {% if application.is_active %} {% trans "Active" %} {% else %} {% trans "Closed" %} {% endif %}
{% endfor %}
{% else %}
{% trans "You haven't submitted any applications yet." %}
{% trans "View Available Jobs" %}
{% endif %}

{% trans "My Uploaded Documents" %}

{% trans "You can upload and manage your resume, certificates, and professional documents here. These documents will be attached to your applications." %}


{# Document List #}
    {% for document in documents %} {# HTMX FIX: Added id to list item for hx-target #}
  • {{ document.document_type|title }} ({{ document.file.name|split:"/"|last }})
    {% trans "Uploaded:" %} {{ document.uploaded_at|date:"d M Y" }} {# HTMX DELETE BUTTON #}
  • {% empty %}
  • {% trans "No documents uploaded yet." %}

  • {% endfor %}
{% comment %}

{% trans "Security & Preferences" %}

{% trans "Password Security" %}

{% trans "Update your password regularly to keep your account secure." %}

{% trans "Profile Image" %}

{% trans "Update your profile picture to personalize your account." %}

{% trans "To delete your profile, please contact HR support." %}
{% endcomment %}
{# ================================================= #}
{% endblock %}