mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
44 lines
1.8 KiB
HTML
44 lines
1.8 KiB
HTML
{% if calendar.documents|length > 0 %}
|
|
|
|
{% import "@ChillDocStore/Macro/macro.html.twig" as m %}
|
|
{% import "@ChillDocStore/Macro/macro_mimeicon.html.twig" as mm %}
|
|
|
|
<div class="accompanying-course-work">
|
|
<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 %}
|
|
{% if is_granted('CHILL_CALENDAR_DOC_SEE', d) %}
|
|
<tr>
|
|
<td class="eval">
|
|
<ul class="eval_title">
|
|
<li>
|
|
<div class="row">
|
|
<div class="col text-start">
|
|
{{ d.storedObject.title }}
|
|
{% if d.dateTimeVersion < d.calendar.dateTimeVersion %}
|
|
<span class="badge bg-danger">{{ 'chill_calendar.Document outdated'|trans }}</span>
|
|
{% endif %}
|
|
</div>
|
|
<div class="col-md-auto text-center">
|
|
{{ mm.mimeIcon(d.storedObject.type) }}
|
|
</div>
|
|
<div class="col col-lg-4 text-end">
|
|
{{ d.storedObject|chill_document_button_group(d.storedObject.title, is_granted('CHILL_CALENDAR_DOC_EDIT', d), {'small': true}) }}
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endif %}
|