{% extends 'mail/base.html' %}
{% load mail tz %}

{% block title %}
<div class="bold gap-xl">
    <span>{{ title }}</span>
</div>
{% endblock %}

{% block buttons %}
<div class="gap-xl">
    <a class="link color-black action action_type_yellow" href="{{ femida_url }}candidates/{{ instance.candidate_id }}/interviews/">
        Перейти к кандидату
    </a>
</div>
{% endblock %}

{% block interviews %}
<div class="divider gap-xl"></div>
<div class="gap-xl">
{% for interview in interviews %}
    <div class="interview gap-lg">
        <div class="gap-xs">
            <a class="link color-blue bold" href="{{ femida_url }}interviews/{{ interview.id }}">{{ interview.section }}</a>
        </div>
        {% if interview.event_start_time %}
        {% timezone receiver.timezone %}
            <div class="font-small gap-xs">
                <a class="link color-gray-date" href="{{ interview.event_url }}">{{ interview.event_start_time|date:"d.m.Y, H:i" }}</a>
            </div>
        {% endtimezone %}
        {% endif %}
        <div class="font-small gap-xs">
            <span class="bold">{% ya interview.interviewer True %}</span>
        </div>
    </div>
{% endfor %}
</div>
{% endblock %}
