{% extends 'administrative/layout.html.twig' %} {% block title %}Dokumentenübersicht{% endblock %} {% block content %}

Dokumentenübersicht

{% for document in pagination %} {% set assignments = seasonTaskDocuments[document.id] ?? [] %} {% else %} {% endfor %}
{{ 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...
{{ knp_pagination_render(pagination) }}
{% endblock %}