feat: remove easy admin bundle, adopt admin theme

This commit is contained in:
Björn Fromme
2026-06-22 08:59:47 +02:00
parent 52ee6b26b1
commit 2fc7ffe458
52 changed files with 1947 additions and 690 deletions
+81
View File
@@ -0,0 +1,81 @@
{% extends 'layout_admin.html.twig' %}
{% block content %}
<h1 class="text-2xl font-bold pb-8">
Logs
</h1>
<div class="data-table-wrapper">
<div class="data-table-wrapper__inner text-sm">
<table class="data-table">
<thead>
<tr>
<th>
{{ knp_pagination_sortable(pagination, 'Datum', 'log.timestamp') }}
</th>
<th>
Fehlercode
</th>
<th>
Benutzer
</th>
<th>
Aktion
</th>
<th>
<span class="whitespace-nowrap">Request ID</span>
</th>
<th>
URI
</th>
<th></th>
</tr>
</thead>
<tbody>
{% for entry in pagination %}
<tr>
<td>
{{ entry.createdAt | date('d.m.Y H:i') }}
</td>
<td>
{{ entry.errorCode | default('-') }}
</td>
<td>
{{ entry.userName }}
</td>
<td>
{{ entry.message }}
</td>
<td>
{{ entry.requestId | default('-') }}
</td>
<td>
<span class="text-xs">{{ entry.uri | default('-') | u.truncate(48, '...') }}</span>
</td>
<td>
{% if entry.channel == 'bpn' %}
{% embed '_partials/_dropdown.html.twig' %}
{% block content %}
<a href="{{ path('app_admin_log_xmldumps', { 'id': entry.id }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1">
XML-Dumps
</a>
{% endblock %}
{% endembed %}
{% endif %}
</td>
</tr>
{% else %}
<tr>
<td colspan="7">
Keine Daten...
</td>
</tr>
{% endfor %}
</tbody>
</table>
{{ knp_pagination_render(pagination) }}
</div>
</div>
{% endblock %}
+61
View File
@@ -0,0 +1,61 @@
{% extends 'layout_admin.html.twig' %}
{% block content %}
<h1 class="text-2xl font-bold pb-8">
XML-Dumps für Request ID {{ logEntry.requestId }}
</h1>
{% if dumps is empty %}
<div class="alert alert-warning">
<i class="fa fa-exclamation-triangle"></i>
Keine XML-Dumps gefunden. Die Dateien wurden vermutlich bereits bereinigt.
</div>
{% else %}
<div class="data-table-wrapper">
<div class="data-table-wrapper__inner text-sm">
<table class="data-table">
<thead>
<tr>
<th>
Dateiname
</th>
<th>
Typ
</th>
<th>
Dateigröße
</th>
<th>
Aktion
</th>
</tr>
</thead>
<tbody>
{% for dump in dumps %}
<tr>
<td>
<code>{{ dump.filename }}</code>
</td>
<td>
{% if dump.type == 'request' %}
<span class="badge bg-primary">Request</span>
{% else %}
<span class="badge bg-success">Response</span>
{% endif %}
</td>
<td>
{{ (dump.size / 1024)|number_format(1) }} KB
</td>
<td>
<a href="{{ path('app_admin_log_xmldump_download', { filename: dump.filename }) }}"
class="">
{{ icon('download', 'w-4 h-4')}} Download
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{% endblock %}