{% extends "base.html" %} {% load i18n static %} {% block title %}{{ job.title }} - University ATS{% endblock %} {% block customCSS %} {% endblock %} {% block content %}
{# LEFT COLUMN: JOB DETAILS (NO TABS) #}
{# HEADER SECTION #}

{{ job.title }}

{% trans "JOB ID: "%}{{ job.internal_job_id }} {# Deadline #} {% if job.application_deadline %}
{% trans "Deadline:" %} {{ job.application_deadline }}
{% endif %}
{# Status badge #}
{{ job.get_status_display }}
{# Share Public Link Button #}
{# CONTENT: CORE DETAILS (No Tabs) #}
{% trans "Administrative & Location" %}
  • {% trans "Edit JOb" %}
    {% trans "Department:" %} {{ job.department|default:"N/A" }}
    {% trans "Position No:" %} {{ job.position_number|default:"N/A" }}
    {% trans "Job Type:" %} {{ job.get_job_type_display }}
    {% trans "Workplace:" %} {{ job.get_workplace_type_display }}
    {% trans "Location:" %} {{ job.get_location_display }}
    {% trans "Salary:" %} {{ job.salary_range |default:"N/A" }}
    {% trans "Created By:" %} {{ job.created_by|default:"N/A" }}
    {% trans "Created At:" %} {{ job.created_at|default:"N/A" }}
    {% trans "Updated At:" %} {{ job.updated_at|default:"N/A" }}
    {# Description Blocks (Main Content) #} {% if job.description %}
    {% trans "Job Description" %}
    {{ job.description|safe }}
    {% endif %} {% if job.qualifications %}
    {% trans "Required Qualifications" %}
    {{ job.qualifications|safe }}
    {% endif %} {% if job.benefits %}
    {% trans "Benefits" %}
    {{ job.benefits|safe}}
    {% endif %} {% if job.application_instructions %}
    {% trans "Application Instructions" %}
    {{ job.application_instructions|safe }}
    {% endif %}
    {# RIGHT COLUMN: TABBED CARDS #}
    {# RIGHT TABS NAVIGATION #}
    {# TAB 1: APPLICANTS CONTENT #}
    {% trans "Total Applicants" %} ({{ total_applicants }})
    {# TAB 2: TRACKING CONTENT #}
    {% trans "Applicant Stages" %}
    {% include 'jobs/partials/applicant_tracking.html' %}

    {% trans "The applicant tracking flow is defined by the attached Form Template. View the Form Template tab to manage stages and fields." %}

    {# Placeholder for stage tracker component #}
    {# TAB 3: MANAGEMENT (Form Template) CONTENT #}
    {% trans "Form Management" %}

    {% trans "Manage the custom application forms associated with this job posting." %}

    {% if not job.form_template %} {% trans "Create New Form Template" %} {% else %} {% trans "View Form Template" %} {% endif %}
    {# TAB 4: LINKEDIN INTEGRATION CONTENT #}
    {% trans "LinkedIn Integration" %}
    {% if job.posted_to_linkedin %}
    {% trans "Posted successfully!" %}
    {% if job.linkedin_post_url %} {% trans "View on LinkedIn" %} {% endif %} {% trans "Posted on:" %} {{ job.linkedin_posted_at|date:"M d, Y" }} {% else %}

    {% trans "This job has not been posted to LinkedIn yet." %}

    {% endif %}
    {% csrf_token %}
    {% if not request.session.linkedin_authenticated %} {% trans "You need to" %} {% trans "authenticate with LinkedIn" %} {% trans "first." %} {% endif %} {% if job.linkedin_post_status and 'ERROR' in job.linkedin_post_status %}
    {% trans "Error:" %} {{ job.linkedin_post_status }}
    {% endif %}
    {# Card 2: Candidate Category Chart #}
    {% trans "Candidate Categories & Scores" %}
    {# Card 3: KPIs #}
    {% trans "Key Performance Indicators" %}
    {# 1. Job Avg. Score #}
    {{ avg_match_score|floatformat:1 }}
    {% trans "Avg. AI Score" %}
    {# 2. High Potential Count #}
    {{ high_potential_count }}
    {% trans "High Potential" %}
    {# 3. Avg. Time to Interview #}
    {{ avg_t2i_days|floatformat:1 }}d
    {% trans "Time to Interview" %}
    {# 4. Avg. Exam Review Time #}
    {{ avg_t_in_exam_days|floatformat:1 }}d
    {% trans "Avg. Exam Review" %}
    {% include "jobs/partials/image_upload.html" %} {% endblock %} {% block customJS%} {% endblock %}