{% load teleforma_tags %} {% load i18n %} {% if course.document.all|from_course_type:type %}

{% trans "Documents"%}

{% with course.document.all as docs %} {% for doc_type in doc_types %} {% if docs|from_course_type:type|from_doc_type:doc_type and not type_counter > 2 %} {{ doc_type }} {% for doc in docs|from_course_type:type|from_doc_type:doc_type %} {% if doc.course_type.all|length > 1 and type_counter > 1 %} {% else %} {% endif %} {% endfor %}
{% if doc.file %}{% endif %} {{ doc.title }}{% if doc.file %}{% endif %} {{ doc.date_modified }} {% if doc.file %}{% endif %}
{% endif %} {% endfor %} {% endwith %}
{% else %}

{% trans "No document" %}

{% endif %}