Files
myep/templates/admin/xml_dump/list.html.twig
T

63 lines
2.5 KiB
Twig

{% extends '@EasyAdmin/layout.html.twig' %}
{% block content_title %}
XML Dumps
{% endblock %}
{% block main %}
<div class="content-panel">
<div class="content-panel-header">
<h2>XML Dumps for Request ID</h2>
<code>{{ requestId }}</code>
</div>
<div class="content-panel-body">
{% 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 %}
<table class="table table-striped">
<thead>
<tr>
<th>Dateiname</th>
<th>Typ</th>
<th class="text-end">Dateigröße</th>
<th class="text-end">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 class="text-end">{{ (dump.size / 1024)|number_format(1) }} KB</td>
<td class="text-end">
<a href="{{ path('admin_xml_dump_download', {filename: dump.filename}) }}"
class="btn btn-sm btn-outline-primary">
<i class="fa fa-download"></i> Download
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
<div class="content-panel-footer">
<a href="{{ ea_url().setController('App\\Controller\\Admin\\LogEntryCrudController').setAction('index') }}"
class="btn btn-secondary">
<i class="fa fa-arrow-left"></i> Zurück zur Liste
</a>
</div>
</div>
{% endblock %}