{% load static %}{% load i18n %} {% load horillafilters %} {% if interviews %}
{{employee}}'s {% trans "Scheduled Interviews" %}
    {% for interview_schedule in interviews %}
  1. {{forloop.counter}}. {% trans "Date" %} : {{ interview_schedule.interview_date }} {% trans "Time" %} : {{ interview_schedule.interview_time }} {% trans "Interviewer" %} : {% for interviewer in interview_schedule.employee_id.all %}  radio_button_checked {{ interviewer }} {% endfor %} {% trans "Candidate" %} : {{ interview_schedule.candidate_id }} {% if interview_schedule.description %} {% trans "Description" %} : {{ interview_schedule.description }} {% endif %} {% if interview_schedule.completed %}
    check_circle {% trans "Interview Completed" %}
    {% elif interview_schedule.interview_date|date:"Y-m-d" < now|date:"Y-m-d" %}
    dangerous {% trans "Expired Interview" %}
    {% elif interview_schedule.interview_date|date:"Y-m-d" > now|date:"Y-m-d" %}
    schedule {% trans "Upcoming Interview" %}
    {% elif interview_schedule.interview_date|date:"Y-m-d" == now|date:"Y-m-d" and not interview_schedule.completed %}
    today {% trans "Interview Today" %}
    {% endif %}
  2. {% endfor %}
{% else %}
{{employee}}'s {% trans "Scheduled Interviews" %}
{% trans "No interviews are scheduled for this candidate" %}
{% endif %}