divided documents by type

parent 57c9474c
......@@ -11,10 +11,31 @@
{% block content %}
{% include "core/components/course_full.html" %}
<div class="ui horizontal divider">Documents associés</div>
<div class="ui horizontal divider">Polys de cours</div>
<div class="ui cards three column stackable grid container">
{% for document in document_list %}
{% include "core/components/document_sum.html" %}
{% if document.type == 'Poly de cours'%}{% include "core/components/document_sum.html" %}{% endif %}
{% endfor %}
</div>
<div class="ui horizontal divider">Notes de cours</div>
<div class="ui cards three column stackable grid container">
{% for document in document_list %}
{% if document.type == 'Notes de cours'%}{% include "core/components/document_sum.html" %}{% endif %}
{% endfor %}
</div>
<div class="ui horizontal divider">Fiches</div>
<div class="ui cards three column stackable grid container">
{% for document in document_list %}
{% if document.type == 'Fiche'%}{% include "core/components/document_sum.html" %}{% endif %}
{% endfor %}
</div>
<div class="ui horizontal divider">Annales</div>
<div class="ui cards three column stackable grid container">
{% for document in document_list %}
{% if document.type == 'Annale'%}{% include "core/components/document_sum.html" %}{% endif %}
{% endfor %}
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment