{% extends 'base.html' %} {% load static i18n crispy_forms_tags %} {% block title %}{{ schedule.application.name }} - {% trans "Interview Details" %} - ATS{% endblock %} {% block customCSS %} {% endblock %} {% block content %}

{% trans "Interview Details" %}

{{ schedule.application.name }} - {{ schedule.job.title }}

{% trans "Back to Interviews" %} {% trans "View Job" %} {% if schedule.status != 'cancelled' %} {% endif %}
{% trans "Candidate Information" %}
{% if schedule.application.resume %} {% trans "Download Resume" %} {% endif %} {% comment %} {% endcomment %}
{% trans "Personal Details" %}

{% trans "Name:" %} {{ schedule.application.name }}

{% trans "Email:" %} {{ schedule.application.email }}

{% trans "Phone:" %} {{ schedule.application.phone }}

{% if schedule.application.location %}

{% trans "Location:" %} {{ schedule.application.location }}

{% endif %}
{% trans "Application Details" %}

{% trans "Job:" %} {{ schedule.job.title }}

{% trans "Department:" %} {{ schedule.job.department }}

{% trans "Applied Date:" %} {{ schedule.application.created_at|date:"d-m-Y" }}

{% trans "Current Stage:" %} {{ interview.application.stage }} {{ schedule.application.stage }}

{% trans "Interview Details" %}
{{interview.location_type}} {{ schedule.status }}
{% trans "Date:" %} {{ schedule.interview_date|date:"d-m-Y" }}
{% trans "Time:" %} {{ schedule.interview_time|date:"h:i A" }}
{% trans "Duration:" %} {{ interview.duration }} {% trans "minutes" %}
{% trans "Status:" %} {{ interview.status }}
{% if interview.location_type == 'Remote' %}
{% trans "Remote Meeting Details" %}
{% trans "Platform:" %} Zoom
{% if schedule.interview %}
{% trans "Meeting ID:" %} {{ interview.meeting_id }}
{% trans "Password:" %} {{ interview.password }}
{% if interview.join_url %}
{% trans "Join Meeting" %}

{% endif %} {% endif %}
{% else %}
{% trans "Onsite Location Details" %}
{% if schedule.interview %}
{% trans "Address:" %} {{ interview.physical_address }}
{% trans "Room:" %} {{ interview.room_number }}
{% endif %}
{% endif %}
{% trans "AI Generated Questions" %}

{% if LANGUAGE_CODE == "ar" %} {% for question in schedule.interview_questions.ar %} {% endfor %} {% else %} {% for question in schedule.interview_questions.en %} {% endfor %} {% endif %}
{% trans "Question" %} {% trans "Type" %} {% trans "Difficulty" %} {% trans "Category" %}
{{ question.question_text }} {{ question.question_type|capfirst }} {{ question.difficulty_level|capfirst }} {{ question.category|capfirst }}
{{ question.question_text }} {{ question.question_type|capfirst }} {{ question.difficulty_level|capfirst }} {{ question.category|capfirst }}
{% comment %}
{% trans "Generating questions..." %}

{% trans "AI is generating personalized interview questions..." %}

{% trans "Refreshing..." %}

{% trans "Loading questions..." %}

{% trans "No AI questions generated yet. Click 'Generate Questions' to create personalized interview questions based on the candidate's profile and job requirements." %}

{% endcomment %}
{% trans "Interview Timeline" %}
{% trans "Interview Scheduled" %}

{% trans "Interview was scheduled for" %} {{ schedule.interview_date|date:"d-m-Y" }} {{ schedule.interview_time|date:"h:i A" }}

{{ interview.created_at|date:"d-m-Y h:i A" }}
{% if schedule.status == 'confirmed' %}
{% trans "Interview Confirmed" %}

{% trans "Candidate has confirmed attendance" %}

{% endif %} {% if schedule.status == 'completed' %}
{% trans "Interview Completed" %}

{% trans "Interview has been completed" %}

{% endif %} {% if schedule.status == 'cancelled' %}
{% trans "Interview Cancelled" %}

{% trans "Interview was cancelled on: " %}{{ schedule.cancelled_at|date:"d-m-Y" }} {{ schedule.cancelled_at|date:"h:i A" }}

{% endif %}
{% comment %}
{% trans "Participants" %}
{% if schedule.participants.exists %}
{% trans "Internal Participants" %}
{% for participant in schedule.participants.all %}
{{ participant.first_name.0 }}{{ participant.last_name.0 }}
{{ participant.get_full_name }}
{{ participant.email }}
{% endfor %} {% endif %} {% if schedule.system_users.exists %}
{% trans "External Participants" %}
{% for user in schedule.system_users.all %}
{{ user.first_name.0 }}{{ user.last_name.0 }}
{{ user.get_full_name }}
{{ user.email }}
{% endfor %} {% endif %} {% if not schedule.participants.exists and not schedule.system_users.exists %}

{% trans "No participants added yet" %}

{% endif %}
{% endcomment %}
{% trans "Actions" %}
{% if schedule.status != 'cancelled' and schedule.status != 'completed' %} {% endif %} {% if schedule.status == 'cancelled' %}

{% trans "This interview has been cancelled" %}

{% endif %}
{% if schedule.status == 'completed' %}
{% if interview.interview_result %}
{% trans 'Interview Result : ' %}
{% if interview.interview_result == 'passed' %}
{{ interview.interview_result|upper }}
{% if interview.result_comments %}
{% trans 'Result Comment:' %}

{{ interview.result_comments }}

{% endif %}
{% elif interview.interview_result == 'failed' %}
{{ interview.interview_result|upper }}
{% if interview.result_comments %}
{% trans 'Result Comment:' %}

{{ interview.result_comments }}

{% endif %}
{% else %}
{{ interview.interview_result|upper }}
{% if interview.result_comments %}
{% trans 'Result Comment:' %}

{{ interview.result_comments }}

{% endif %}
{% endif %} {% else %} {% trans "No Result Yet" %} {% endif %}
{% endif %}
{% endblock %} {% block customJS %} {% endblock %}