{% extends 'base.html' %} {% block content %}

Application – {{ app.candidate.full_name if app.candidate else 'Candidate' }}

Candidate Details
{% set c = app.candidate %} {% if c %}
Name: {{ c.full_name }}
Email: {{ c.email or '-' }}
Phone: {{ c.phone or '-' }}
Location: {{ c.location or '-' }}
Total Experience (years): {{ c.total_experience_years or '-' }}
Current Company: {{ c.current_company or '-' }}
Current CTC: {{ c.current_ctc or '-' }}
Expected CTC: {{ c.expected_ctc or '-' }}
Source: {{ c.source or '-' }}
Resume: {% if c.resume_path %} {{ c.resume_path }} {# Later you can convert this to a download/view link #} {% else %} - {% endif %}
{% else %}
No candidate details available.
{% endif %}
Requisition Details
{% set r = app.requisition %} {% if r %}
Designation: {{ r.designation.title if r.designation else '-' }}
Department: {{ r.department.name if r.department else '-' }}
Positions: {{ r.positions or 1 }}
Location: {{ r.location or '-' }}
Status: {{ r.status|replace('_',' ')|capitalize }}
Hiring Manager: {{ r.raised_by.full_name if r.raised_by else '-' }}
Work Mode: {{ r.work_mode or '-' }}
Employment Type: {{ r.employment_type or '-' }}
Budget CTC: {{ r.budget_ctc_min or '-' }} – {{ r.budget_ctc_max or '-' }}
{% else %}
No requisition linked.
{% endif %}
{% if avg_rating is not none %}
Interview Summary: Average Rating {{ "%.1f"|format(avg_rating) }} ({{ feedbacks|length }} feedback{{ '' if feedbacks|length == 1 else 's' }})
All interviews completed: {% if all_interviews_done %} Yes {% else %} No {% endif %}
{% endif %} {% if is_hr and all_interviews_done %}
Final HR Decision {% if app.requisition %} {{ app.requisition.code or ('REQ-' ~ app.requisition.id) }} {% endif %}
{% endif %}
{% if interviews and interviews|length %} {% for iv in interviews %} {% endfor %} {% else %} {% endif %}
# Stage Interviewer Scheduled At Mode Location Status Feedback
{{ loop.index }} {{ iv.stage.name if iv.stage else '-' }} {{ iv.interviewer.full_name if iv.interviewer else '-' }} {% if iv.scheduled_at %} {{ iv.scheduled_at.strftime('%d-%m-%Y %H:%M') }} {% else %} - {% endif %} {{ iv.mode or '-' }} {{ iv.location or '-' }} {{ iv.status|replace('_',' ')|capitalize }} {% if iv.status == 'completed' %} View / Edit {% else %} Add Feedback {% endif %}
No interviews scheduled yet.
{% endblock %}