{% extends 'base.html' %} {% load static i18n %} {% block customCSS %} {% endblock %} {% block content %}
{# --- TOP BAR / BACK BUTTON --- #}
{% trans "Back to Meetings" %}
{# --- LEFT COLUMN (COMMENTS & INTERNAL CONTEXT) - Takes 50% of the screen #}
{# --- 1. INTERNAL NOTES / DESCRIPTION CARD (New CRM Feature) --- #} {% if meeting.description %}

{% trans "Internal Context" %}

{% trans "Meeting agenda, purpose, or interview details for internal team use." %}

{{ meeting.description|safe }}

{% endif %} {# --- 2. Comments Section (Now in the Left Column) --- #}
{% trans "Comments" %} ({{ meeting.comments.count }})
{% if user.is_authenticated %} {% endif %}
{% if meeting.comments.all %} {% for comment in meeting.comments.all|dictsortreversed:"created_at" %}
{{ comment.author.get_full_name|default:comment.author.username }} {% if comment.author != user %} {% trans "Comment" %} {% endif %}
{{ comment.created_at|date:"M d, Y P" }}

{{ comment.content|safe }}

{% endfor %} {% else %}

{% trans "No comments yet. Be the first to comment!" %}

{% endif %}
{# --- RIGHT COLUMN (MAIN DETAILS & JOIN INFO) - Takes 50% of the screen #}
{# --- CRM ASSOCIATED RECORD CARD (Elevated Importance) --- #} {% if meeting.interview %}
{% trans "Associated Record" %}
{{ meeting.interview.candidate.name }} {{ meeting.interview.job_position }}
{% endif %} {# --- 1. MAIN DETAILS CARD --- #}
{# --- CONSOLIDATED HEADER --- #}

{{ meeting.topic }}

{{ meeting.status|title }}
{# --- CONNECTION DETAIL BODY (Renamed from Core Details) --- #}

{% trans "Connection Details" %}

{% trans "Meeting ID" %}:
{{ meeting.meeting_id }}
{% trans "Start Time" %}:
{{ meeting.start_time|date:"M d, Y H:i" }}
{% trans "Duration" %}:
{{ meeting.duration }} {% trans "minutes" %}
{% trans "Timezone" %}:
{{ meeting.timezone|default:"UTC" }}
{% trans "Host Email" %}:
{{ meeting.host_email|default:"N/A" }}
{# --- ACTION BAR AT THE BOTTOM OF THE MAIN CARD --- #}
{# --- 2. JOIN INFO CARD (Separate from details, but in the same column) --- #} {% if meeting.join_url %}

{% trans "Join Information" %}

{% trans "Join Meeting Now" %}
{# Message should not be display: none; but opacity: 0; for smooth transition #}
{% trans "Copied!" %}
{% trans "Join URL" %}: {{ meeting.join_url }}
{% if meeting.password %}
{% trans "Password" %}:
{{ meeting.password }}
{% endif %}
{% endif %}
{# --- API RESPONSE CARD (Full width, hidden by default) --- #} {% if meeting.zoom_gateway_response %} {% endif %}
{# MODALS (KEEP OUTSIDE OF THE MAIN LAYOUT ROWS) #} {% comment %} {% include 'modals/delete_modal.html' with item_name="Meeting" delete_url_name='delete_meeting' %} {% endcomment %} {% endblock %} {% block customJS %} {% endblock %}