{% extends "base.html" %} {% load static i18n %} {% block title %}{{ job.title }} - Applicants{% endblock %} {% block customCSS %} {% endblock %} {% block content %}

{% trans "Applicants for" %} "{{ job.title }}"

{% trans "Add New Applicant" %}
{{ job.title }}
{% trans "Department:" %} {{ job.department|default:"N/A" }}
{% trans "Location:" %} {{ job.get_location_display }}
{% trans "Job Type:" %} {{ job.get_job_type_display }}
{% trans "Workplace:" %} {{ job.get_workplace_type_display }}
{{ job.get_status_display }} {% if candidates %}
{% trans "Total Applicants" %}:

{{ candidates.count }}

{% endif %}
{% if candidates %}
{# View Switcher (Assuming this template is customized to match the new UI style) #} {% include "includes/_list_view_switcher.html" with list_id="job-candidates-list" %} {# Table View (Default) #}
{% trans "Applicants" %} ({{ candidates.count }})
{% for candidate in candidates %} {% endfor %}
{% trans "Name" %} {% trans "Email" %} {% trans "Phone" %} {% trans "Stage" %} {% trans "Applied Date" %} {% trans "Actions" %}
{{ candidate.first_name }} {{ candidate.last_name }} {{ candidate.email }} {{ candidate.phone|default:"-" }} {{ candidate.stage }} {{ candidate.created_at|date:"M d, Y" }}
{% if user.is_staff %} {% endif %}
{# Card View #}
{% for candidate in candidates %}
{{ candidate.first_name }} {{ candidate.last_name }}
{{ candidate.email }}
{{ candidate.stage }}

{% trans "Phone" %}: {{ candidate.phone|default:"N/A" }}

{% trans "Applied Date" %}: {{ candidate.created_at|date:"M d, Y" }}

{% endfor %}
{% else %}

{% trans "No applicants found" %}

{% trans "There are no candidates who have applied for this position yet." %}

{% trans "Add First Applicant" %}
{% endif %} {% include "includes/delete_modal.html" %}
{% endblock %} {% block extra_js %} {% endblock %}