{% extends "base.html" %} {% load static i18n %} {% block title %}Job Postings - University ATS{% endblock %} {% block customCSS %} {% endblock %} {% block content %}
{# --- MAIN HEADER AND ACTION BUTTON --- #}

{% trans "Job Postings" %}

{% trans "Create New Job" %}
{# --- FILTER CARD --- #}
{% include 'includes/search_form.html' %}
{% if status_filter or search_query %} {% trans "Clear Filters" %} {% endif %}
{# --- START OF JOB LIST CONTAINER --- #}
{% include "includes/_list_view_switcher.html" with list_id="job-list" %} {# 1. TABLE VIEW (Desktop Default) - Hidden on Mobile #}
{# --- Corrected Multi-Row Header Structure --- #} {% for job in jobs %} {% if job.assigned_to %} {% else %} {% endif %} {# CANDIDATE MANAGEMENT DATA #} {% endfor %}
{% trans "Job Title / ID" %} {% trans "Source" %} {% trans "Max Apps" %} {% trans "Deadline" %} {% trans "Assigned To" %} {% trans "Applicants Metrics (Current Stage Count)" %}
{% trans "All" %} {% trans "Screened" %} {% trans "Exam" %} {% trans "Interview" %} {% trans "DOC Review" %} {% trans "Offer" %}
{{ job.title }}
{{ job.pk }} / {{ job.status }}
{{ job.get_source }} {{ job.max_applications }} {{ job.application_deadline|date:"d-m-Y" }} {{ job.assigned_to.first_name|capfirst }} {{ job.assigned_to.last_name|capfirst }} {% trans "Unassigned" %} {% if job.form_template %} {% else %} {% endif%} {% if job.all_applications.count %}{{ job.all_applications.count }}{% else %}-{% endif %} {% if job.screening_applications.count %}{{ job.screening_applications.count }}{% else %}-{% endif %} {% if job.exam_applications.count %}{{ job.exam_applications.count }}{% else %}-{% endif %} {% if job.interview_applications.count %}{{ job.interview_applications.count }}{% else %}-{% endif %} {% if job.document_review_applications.count %}{{ job.document_review_applications.count }}{% else %}-{% endif %} {% if job.offer_applications.count %}{{ job.offer_applications.count }}{% else %}-{% endif %}
{# 2. CARD VIEW (Mobile Default) - Hidden on Desktop #}
{% for job in jobs %}
{{ job.title }}
{{ job.status }}

ID: {{ job.pk }} | Source: {{ job.get_source }}

{% endfor %}
{# --- END CARD VIEW --- #}
{# --- END OF JOB LIST CONTAINER --- #} {% include "includes/paginator.html" %} {% if not jobs and not job_list_data and not page_obj %}

{% trans "No job postings found" %}

{% trans "Create your first job posting to get started or adjust your filters." %}

{% trans "Create Job" %}
{% endif %}
{% endblock %}