{% extends "ru/mail/mail-base.html" %}
{% load issue_filters %}


{% block body %}
{{employee_data.employee}}
{% block transfer_or_mobile %}{% endblock transfer_or_mobile %}

Общие даты командировки: с {% if employee_data.departure_date %}{{ employee_data.departure_date }}{% else %}{{trip_date_from}}{% endif%} по {% if employee_data.return_date %}{{ employee_data.return_date }}{% else %}{{trip_date_to}}{% endif %}

Маршрут:
{% for city, next_city in city_list|city_pairs %}
{{ city.city }} ({{ city.country }}) – {% if next_city.is_return_route %}{{ departure_city.city }} ({{ departure_city.country }}){% else %}{{ next_city.city }} ({{ next_city.country }}){% endif %} {{next_city.city_arrive_date_type|as_arrive_type }}:{% if forloop.first and employee_data.departure_date %}{{ employee_data.departure_date }}{% else %}{{ next_city.departure_date }}{% endif %}
{% endfor %}
{% endblock body %}

