{% extends 'base.html' %}
{% load i18n fontawesome_5 %}

{% block body %}
    <div class="row">
        <div class="col-sm-12 col-md-12 col-lg-12 col-xl-6">
            <h3>{% trans 'Evaluation report' %} {{office.long_name}}</h3>
            <h5>{% trans 'From' %} {{report.date_from.date}} {% trans 'to' %} {{report.date_to.date}}</h5>
        </div>
        <div class="col-sm-12 col-md-12 col-lg-12 col-xl-6">
            <div class="d-flex justify-content-end">
                <div class="dropdown">
                    <div class="btn btn" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                        <button class="btn btn-default" title="{% trans 'Download' %}">
                            {% fa5_icon 'download' %}
                        </button>
                    </div>
                    <div class="dropdown-menu dropdown-menu-right">
                        <a href="{{request.url}}?format=excel&{{request.GET.urlencode}}">
                            <button class="dropdown-item" title="Excel">
                                {% fa5_icon 'file-excel' %} Excel
                            </button>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <hr>
    <div class="col-sm-12 col-md-12 col-lg-12">
    {% include 'analysis/reports/includes/intervention/card_intervention.html' %}
    {% include 'analysis/reports/includes/compensation/card_compensation.html' %}
    {% include 'analysis/reports/includes/eco_account/card_eco_account.html' %}
    {% include 'analysis/reports/includes/old_data/card_old_interventions.html' %}
    </div>
{% endblock %}