{% extends "base.html" %} {% load static humanize i18n %} {% block title %}{{ candidate.name }} - {{ block.super }}{% endblock %} {% block customCSS %} {% endblock %} {% block content %}
{# LEFT COLUMN: MAIN CANDIDATE DETAILS AND TABS #}
{# HEADER SECTION (The original Candidate Header Card content, redesigned) #}

{{ candidate.name }}

{{ candidate.applied|yesno:"Applied,Pending" }} {% trans "Stage:" %}
{% trans "Applied for:" %} {{ candidate.job.title }}
{# Action buttons moved to the right column, keeping only the most visible here for quick access if preferred #} {% if user.is_staff %} {% endif %}
{# LEFT TABS NAVIGATION #}
{# TAB 1 CONTENT: CONTACT & DATES (Original Contact Card) #}
{% trans "Core Details" %}
{% trans "Email" %} {{ candidate.email }}
{% trans "Position Applied" %} {{ candidate.job.title }}
{% trans "Applied Date" %}
{{ candidate.created_at|date:"M d, Y H:i" }} {{ candidate.created_at|naturaltime }}
{# TAB 2 CONTENT: RESUME (Original Resume Card) #} {% if candidate.resume %}
{% trans "Resume Document" %}

{{ candidate.resume.name }}

{{ candidate.resume.name|truncatechars:30 }}
{% trans "Download Resume" %}
{% endif %} {# TAB 3 CONTENT: PARSED SUMMARY (Original Parsed Summary Card) #} {% if candidate.parsed_summary %}
{% trans "AI Generated Summary" %}

{{ candidate.parsed_summary|linebreaks }}

{% endif %}
{# RIGHT COLUMN: ACTIONS AND PARSED DATA TABS #}
{# ACTIONS CARD (The new consolidated action card) #} {% if user.is_staff %}
{% trans "Management Actions" %}
{# MODAL TRIGGER #} {% comment %} {% endcomment %} {% trans "Edit Details" %} {% trans "Delete Candidate" %} {% trans "Back to List" %}
{% endif %} {# PARSED DATA TABS (Original Parsed Data Card, now tabbed) #} {% if parsed %}
{# TAB 1: PARSED DATA - UPDATED TO 2-COLUMN GRID #}
{% trans "Structured Resume Data" %}
{% for key, value in parsed.items %}
{{ key|title }}

{{ value|default:"N/A"|linebreaksbr }}

{% endfor %}
{# TAB 2: ACTIVITY (Placeholder) #}

{% trans "Activity feed (e.g., stage changes, notes, interview history) will appear here." %}

{% endif %}
{% if user.is_staff %} {% include "recruitment/partials/stage_update_modal.html" with candidate=candidate form=stage_form %} {% endif %} {% endblock %}