{% extends "trainings/trainingactivity_base_detail.html" %}

{% load i18n template_tools %}

{% block activity_details %}
    <table class="table table-bordered">
        <tr>
            {% if document.trainer_document_file %}
                <td>
                    <a href="{{ document.trainer_document_file.url }}" target="_blank">
                        <i class="fa fa-file"></i>
                        {% get_verbose_field_name document "trainer_document_file" %}
                    </a>
                </td>
            {% endif %}
            <td>
                <a href="{{ document.trainee_document_file.url }}" target="_blank">
                    <i class="fa fa-file"></i>
                    {% get_verbose_field_name document "trainee_document_file" %}
                </a>
            </td>
            <td>
                {% if document.trainer_only %}
                    <i class="fa fa-check"></i>
                    {% get_verbose_field_name document "trainer_only" %}
                {% else %}
                    <i class="fa fa-remove"></i>
                    {% get_verbose_field_name document "trainer_only" %}
                {% endif %}
            </td>
            <td>
                {% if document.needs_approval %}
                    <i class="fa fa-check"></i>
                    {% get_verbose_field_name document "needs_approval" %}
                {% else %}
                    <i class="fa fa-remove"></i>
                    {% get_verbose_field_name document "needs_approval" %}
                {% endif %}
            </td>
        </tr>
    </table>
{% endblock %}
