{% extends "base.html" %} {% load static i18n %} {% block title %}Job Postings - University ATS{% endblock %} {% block customCSS %} {% endblock %} {% block content %}

{% trans "Job Postings" %}

{% trans "Create New Job" %}
{% include 'includes/search_form.html' %}
{% if job_filter or search_query %} {% trans "Clear" %} {% endif %}
{# --- START OF JOB LIST CONTAINER --- #}
{# View Switcher (Contains the Card/Table buttons and JS/CSS logic) #} {% include "includes/_list_view_switcher.html" with list_id="job-list" %} {# 1. TABLE VIEW (Default Active) #}
{# --- Corrected Multi-Row Header Structure --- #} {% for job in jobs %} {# CANDIDATE MANAGEMENT DATA - URLS NEUTRALIZED #} {% endfor %}
{% trans "Job Title / ID" %} {% trans "Source" %} {% trans "Number Of Applicants" %} {% trans "Application Deadline" %} {% trans "Actions" %} {% trans "Manage Forms" %} {% trans "Applicants Metrics" %}
{% trans "Applied" %} {% trans "Screened" %} {% trans "Exam" %} {% trans "Interview" %} {% trans "Offer" %}
{{ job.title }}
{{ job.pk }} / {{ job.status }}
{{ job.get_source }} {{ job.max_applications }} {{ job.application_deadline|date:"d-m-Y" }}
{% if job.form_template %} {% endif %}
{% if job.applying_count %}{{ job.applying_count }}{% else %}-{% endif %} {% if job.screening_count %}{{ job.screening_count }}{% else %}-{% endif %} {% if job.exam_count %}{{ job.exam_count }}{% else %}-{% endif %} {% if job.interview_count %}{{ job.interview_count }}{% else %}-{% endif %} {% if job.offer_count %}{{ job.offer_count }}{% else %}-{% endif %}
{# 2. CARD VIEW (Previously Missing) - Added Bootstrap row/col structure for layout #}
{% for job in jobs %}
{{ job.title }}
{{ job.status }}

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

  • {% trans "Applicants" %}:{{ job.metrics.applied|default:"0" }}
  • {% trans "Offers Made" %}: {{ job.metrics.offer|default:"0" }}
  • {% trans "Form" %}:{% if job.form_template %} {{ job.form_template.name }} {% else %} {% trans "N/A" %} {% endif %}
{% trans "Details" %}
{% if job.form_template %} {% endif %}
{% 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 %}