{% extends "base.html" %} {% load static i18n %} {% block title %}{% trans "Interviews & Meetings" %} - {{ block.super }}{% endblock %} {% block customCSS %} {% endblock %} {% block content %}

{% trans "Interviews & Meetings" %}

{% comment %} {% endcomment %}
{# Assuming includes/search_form.html handles the 'q' parameter #} {% include "includes/search_form.html" with search_query=search_query %}
{# Hidden inputs to persist other filters #} {% if search_query %}{% endif %} {% if status_filter %}{% endif %} {% if candidate_name_filter %}{% endif %}
{% if status_filter or search_query or candidate_name_filter or type_filter %} {% trans "Clear" %} {% endif %}
{% if meetings_data %}
{# View Switcher (not provided, assuming standard include) #} {% include "includes/_list_view_switcher.html" with list_id="meetings-list" %} {# Card View #}
{% for meeting in meetings_data %}
{{ meeting.topic }}
{# Display the type badge (Remote/Onsite) #} {{ meeting.type|title }}

{% trans "Candidate" %}: {{ meeting.interview.application.person.full_name|default:"N/A" }}
{% trans "Job" %}: {{ meeting.interview.job.title|default:"N/A" }}
{# Dynamic location/type details #} {% if meeting.type == 'Remote' %} {% trans "Remote ID" %}: {{ meeting.meeting_id|default:meeting.location.id }}
{% elif meeting.type == 'Onsite' %} {# Use the details object for concrete location info #} {% trans "Location" %}: {{ meeting.details.room_number|default:meeting.details.physical_address|truncatechars:30 }}
{% endif %} {% trans "Start" %}: {{ meeting.start_time|date:"M d, Y H:i" }}
{% trans "Duration" %}: {{ meeting.duration }} minutes

{{ meeting.interview.get_status_display }}
{% trans "View" %} {% if meeting.type == 'Remote' and meeting.join_url %} {% trans "Join Remote" %} {% elif meeting.type == 'Onsite' %} {% endif %} {# CORRECTED: Passing the slug to the update URL #}
{% endfor %}
{# Table View #}
{% for meeting in meetings_data %} {% endfor %}
{% trans "Topic" %} {% trans "Type" %} {% trans "Candidate" %} {% trans "Job" %} {% trans "Start Time" %} {% trans "Duration" %} {% trans "Status" %} {% trans "Actions" %}
{{ meeting.topic }} {# Display the event type badge #} {{ meeting.type|title }} {{ meeting.interview.application.person.full_name }} {{ meeting.interview.job.title }} {{ meeting.start_time|date:"M d, Y H:i" }} {{ meeting.duration }} min {# Display the meeting status badge from the ScheduledInterview model #} {{ meeting.interview.get_status_display }}
{% if meeting.type == 'Remote' and meeting.join_url %} {% endif %} {# CORRECTED: Passing the slug to the update URL #}
{# Pagination (All filters correctly included in query strings) #} {% if is_paginated %} {% endif %} {% else %}

{% trans "No interviews or meetings found" %}

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

{% comment %} {% endcomment %}
{% endif %}
{% endblock %}