{% extends "base.html" %} {% load static i18n %} {% block title %}{% trans "Scheduled Interviews List" %} - {{ block.super }}{% endblock %} {% block customCSS %} {# (Your existing CSS is kept here, as it is perfect for the theme) #} {% endblock %} {% block content %} {{interviews}}
{% trans "Job" %}:
{{ interview.job.title }}
{# --- Remote/Onsite Logic - Handles both cases safely --- #}
{% trans "Type" %}: {{ interview.schedule.get_interview_type_display }}
{% if interview.schedule.interview_type == 'Remote' %}
{# CRITICAL FIX: Safe access to zoom_meeting details #}
{% trans "Zoom ID" %}: {{ interview.zoom_meeting.meeting_id|default:"N/A" }}
{% else %}
{% trans "Location" %}: {{ interview.schedule.location }}
{% endif %}
{% trans "Date" %}: {{ interview.interview_date|date:"M d, Y" }}
{% trans "Time" %}: {{ interview.interview_time|time:"H:i" }}
{% trans "Duration" %}: {{ interview.schedule.interview_duration }} minutes
| {% trans "Candidate" %} | {% trans "Job" %} | {% trans "Type" %} | {% trans "Date/Time" %} | {% trans "Duration" %} | {% trans "Status" %} | {% trans "Actions" %} |
|---|---|---|---|---|---|---|
| {{ interview.candidate.name }} | {{ interview.job.title }} | {{ interview.schedule.get_interview_type_display }} | {{ interview.interview_date|date:"M d, Y" }} ({{ interview.interview_time|time:"H:i" }}) |
{{ interview.schedule.interview_duration }} min | {% if interview.status == 'confirmed' %} {% endif %} {{ interview.status|title }} |
{% trans "Schedule your first interview or adjust your filters." %}
{# FIX: Using safe anchor href="#" to prevent the NoReverseMatch crash. #} {% trans "Schedule an Interview" %}