add pdf reader modul

This commit is contained in:
team2
2026-02-12 20:57:54 +01:00
parent 14d7f3b2b9
commit a625468a9a
9 changed files with 229 additions and 6 deletions

View File

@@ -21,20 +21,33 @@
<thead>
<tr>
<th>Titel</th>
<th>Typ</th>
<th>Status</th>
<th>Versionen</th>
<th>Aktive Version</th>
<th>Erstellt am</th>
<th>Aktionen</th>
</tr>
</thead>
<tbody>
{% for document in documents %}
<tr>
<td>
<a href="{{ path('admin_document_show', {id: document.id}) }}" class="text-decoration-none text-light">
<a href="{{ path('admin_document_show', {id: document.id}) }}"
class="text-decoration-none text-light">
{{ document.title }}
</a>
</td>
<td>
{% if document.currentVersion %}
<span class="badge bg-secondary">
{{ document.currentVersion.fileTypeLabel }}
</span>
{% else %}
<span class="badge bg-dark">-</span>
{% endif %}
</td>
<td>
{% if document.status == 'ACTIVE' %}
<span class="badge bg-success">Aktiv</span>
@@ -51,6 +64,12 @@
{% endif %}
</td>
<td>{{ document.createdAt|date('d.m.Y H:i') }}</td>
<td>
<a class="btn btn-sm btn-outline-light" href="{{ path('admin_document_show', {id: document.id}) }}"
class="text-decoration-none text-light">
Ansehen
</a>
</td>
</tr>
{% endfor %}
</tbody>