{% extends 'administrative/layout.html.twig' %} {% block title %}Dokumentenübersicht{% endblock %} {% block content %}
| {{ knp_pagination_sortable(pagination, 'Dateiname', 'upload.originalFilename') }} | Verwendung | Dateigröße | Upload am | Upload von | |
|---|---|---|---|---|---|
| {{ document.displayName ? document.displayName : document.originalFilename }} | {# A slot belongs to exactly one document, so this is what tells staff which file a feature actually picks up. #} {% set usages = (document.token ? [document.token.label()] : [])|merge( assignments|filter(a => a.task)|map(a => 'Saisonteam: ' ~ a.task.label()) ) %} {{ usages is empty ? '-' : usages|join(', ') }} | {{ document.size|file_size }} | {{ document.createdAt|date('d.m.Y') }} | {{ document.createdBy }} |
{% if assignments is empty %}
{% else %}
{# Held by a NOT NULL foreign key; replace it under Saisonteam-Dokumente first. #}
{{ icon('delete') }}
{% endif %}
{{ icon('download') }}
|
| Keine Daten... | |||||