{% 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' %}
{% trans "Clear" %}
{# --- 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 "Actions" %} {% trans "Manage Forms" %} {% trans "Applicants Metrics" %}
{% trans "Applied" %} {% trans "Screened" %} {% trans "Exam" %}
P F
{% trans "Interview" %}
P F
{% trans "Offer" %}
{{ job.title }}
{{ job.pk }} / {{ job.status }}
{{ job.get_source }}
{% if job.form_template %} {% endif %}
{% if job.metrics.applied %}{{ job.metrics.applied }}{% else %}-{% endif %} {% if job.metrics.screening %}{{ job.metrics.screening }}{% else %}-{% endif %} {% if job.metrics.exam_p %}{{ job.metrics.exam_p }}{% else %}-{% endif %} {% if job.metrics.exam_f %}{{ job.metrics.exam_f }}{% else %}-{% endif %} {% if job.metrics.interview_p %}{{ job.metrics.interview_p }}{% else %}-{% endif %} {% if job.metrics.interview_f %}{{ job.metrics.interview_f }}{% else %}-{% endif %} {% if job.metrics.offer %}{{ job.metrics.offer }}{% 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 --- #} {% comment %} Fallback/Empty State {% endcomment %} {% 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 %}