{% if calendar.documents|length > 0 %} {% import "@ChillDocStore/Macro/macro.html.twig" as m %} {% import "@ChillDocStore/Macro/macro_mimeicon.html.twig" as mm %}
{% for d in calendar.documents %} {% if is_granted('CHILL_CALENDAR_DOC_SEE', d) %} {% endif %} {% endfor %}

{{ 'chill_calendar.Documents'|trans }}

  • {{ mm.mimeIcon(d.storedObject.type) }} {{ d.storedObject.title }} {% if d.dateTimeVersion < d.calendar.dateTimeVersion %} {{ 'chill_calendar.Document outdated'|trans }} {% endif %}
      {% if chill_document_is_editable(d.storedObject) and is_granted('CHILL_CALENDAR_DOC_EDIT', d) %}
    • {{ d.storedObject|chill_document_edit_button }}
    • {% endif %} {% if is_granted('CHILL_CALENDAR_DOC_EDIT', d) %}
    • {% endif %}
    • {{ m.download_button(d.storedObject, d.storedObject.title) }}
{% endif %}