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

{% trans "Candidate Profiles" %}

{# The search form structure should be updated to align with the job_list style if possible #} {% include "includes/search_form.html" with search_query=search_query %} {% if user.is_staff %} {% trans "Add New Candidate" %} {% endif %}
{% if candidates %}
{# View Switcher #} {% include "includes/_list_view_switcher.html" with list_id="candidate-list" %} {# Table View (Default) #}
{% for candidate in candidates %} {% endfor %}
{% trans "Name" %} {% trans "Email" %} {% trans "Phone" %} {% trans "Job" %} {% trans "Stage" %} {% trans "Created" %} {% trans "Actions" %}
{{ candidate.name }} {{ candidate.email }} {{ candidate.phone }} {{ candidate.job.title }} {{ candidate.stage }} {{ candidate.created_at|date:"M d, Y" }}
{% if user.is_staff %} {% endif %}
{# Card View #}
{% for candidate in candidates %}
{{ candidate.name }}
{{ candidate.email }}

{% trans "Phone" %}: {{ candidate.phone|default:"N/A" }}
{% trans "Job" %}: {{ candidate.job.title }}
{% trans "Stage" %}: {{ candidate.stage }}
{% trans "Created" %}: {{ candidate.created_at|date:"M d, Y" }}

{% endfor %}
{% if is_paginated %} {% endif %} {% else %}

{% trans "No candidates found." %}

{% trans "Start by adding a new profile or adjusting your search filters." %}

{% if user.is_staff %} {% trans "Add Your First Candidate" %} {% endif %}
{% endif %}
{% endblock %}