mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
46 lines
1.4 KiB
HTML
46 lines
1.4 KiB
HTML
{% if calendar.documents|length > 0 %}
|
|
|
|
{% import "@ChillDocStore/Macro/macro.html.twig" as m %}
|
|
{% import "@ChillDocStore/Macro/macro_mimeicon.html.twig" as mm %}
|
|
|
|
<style lang="css">
|
|
|
|
--bs-btn-padding-y: .25rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .75rem;
|
|
</style>
|
|
|
|
<div class="accompanying_course_work-list">
|
|
<table class="obj-res-eval my-3">
|
|
<thead>
|
|
<th class="eval">
|
|
<h4 class="title_label">{{ 'chill_calendar.Documents'|trans }}</h4>
|
|
</th>
|
|
</thead>
|
|
<tbody>
|
|
{% for d in calendar.documents %}
|
|
<tr>
|
|
<td class="eval">
|
|
<ul class="eval_title">
|
|
<li>
|
|
{{ mm.mimeIcon(d.storedObject.type) }}
|
|
{{ d.storedObject.title }}
|
|
|
|
<ul class="record_actions small inline">
|
|
{% if chill_document_is_editable(d.storedObject) %}
|
|
<li>
|
|
{{ d.storedObject|chill_document_edit_button }}
|
|
</li>
|
|
{% endif %}
|
|
<li>
|
|
{{ m.download_button(d.storedObject, d.storedObject.title) }}
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endif %}
|