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

{% trans "Candidate Profiles" %}

{% if user.is_staff %} {% trans "Add New Candidate" %} {% endif %}
{% include 'includes/search_form.html' %}
{% url 'candidate_list' as candidate_list_url %}
{% if search_query %}{% endif %}
{% if job_filter or search_query %} {% trans "Clear" %} {% endif %}
{% if candidates %}
{# View Switcher - list_id must match the container ID #} {% 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 "Major" %} {% trans "Stage" %} {% trans "created At" %} {% trans "Actions" %}
{{ candidate.name }} {{ candidate.email }} {{ candidate.phone }} {{ candidate.job.title }} {% if candidate.professional_category != 'Uncategorized' %} {{ candidate.professional_category }} {% endif %} {{ candidate.stage }} {{ candidate.created_at|date:"d-m-Y" }}
{% if user.is_staff %} {% endif %}
{# Card View #}
{# Added 'row' class for grid structure #} {% for candidate in candidates %}
{# Column wrapper for grid #}
{{ candidate.name }}
{{ candidate.stage }}

{{ candidate.email }}
{{ candidate.phone|default:"N/A" }}
{{ candidate.job.title }}

{% trans "View" %} {% if user.is_staff %} {% trans "Edit" %} {% endif %}
{% endfor %}
{# Pagination (Standardized to Reference) #} {% include "includes/paginator.html" %} {% else %}

{% trans "No candidate profiles found" %}

{% trans "Create your first candidate profile or adjust your filters." %}

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