Logs
This commit is contained in:
parent
deca028334
commit
ff9978d103
@ -1,72 +1,91 @@
|
|||||||
{% extends 'backend_base.html.twig' %}
|
{% extends 'backend_tailwind_base.html.twig' %}
|
||||||
|
|
||||||
|
{% block header %}
|
||||||
|
<div>
|
||||||
|
<h1 class="text-psc text-2xl font-medium flex flex-row gap-1">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="h-8">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z" />
|
||||||
|
</svg>
|
||||||
|
Logs
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="header">
|
<div class="flex flex-col gap-6">
|
||||||
<div class="row">
|
<div class="rounded-sm border bg-white px-7.5 py-6 shadow-lg dark:border-strokedark dark:bg-boxdark">
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
|
<div class="mb-6">
|
||||||
<h3>
|
<h2 class="text-lg font-semibold text-gray-900">Einträge</h2>
|
||||||
<i class="fa-fw fa fa-paper-plane"></i>
|
|
||||||
Logs <span>>
|
|
||||||
Liste </span>
|
|
||||||
</h3>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 text-end">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="body">
|
<div class="overflow-x-auto">
|
||||||
<div class="panel">
|
<table class="min-w-full text-sm">
|
||||||
<div class="body">
|
<thead class="bg-slate-100 border-t border-stroke">
|
||||||
<h2>Einträge</h2>
|
<tr>
|
||||||
<div class="table-responsive">
|
<th class="px-2 py-3 text-left font-medium text-gray-700">Id</th>
|
||||||
<table class="table">
|
<th class="px-2 py-3 text-left font-medium text-gray-700">Created</th>
|
||||||
<thead class="thead-dark">
|
<th class="px-2 py-3 text-left font-medium text-gray-700">Shop</th>
|
||||||
<tr>
|
<th class="px-2 py-3 text-left font-medium text-gray-700">User</th>
|
||||||
<th>Id</th>
|
<th class="px-2 py-3 text-left font-medium text-gray-700">Module</th>
|
||||||
<th>Created</th>
|
<th class="px-2 py-3 text-left font-medium text-gray-700">Reference</th>
|
||||||
<th>Shop</th>
|
<th class="px-2 py-3 text-left font-medium text-gray-700">Message</th>
|
||||||
<th>User</th>
|
<th class="px-2 py-3 text-left font-medium text-gray-700">Data</th>
|
||||||
<th>Module</th>
|
</tr>
|
||||||
<th>Reference</th>
|
</thead>
|
||||||
<th>Message</th>
|
<tbody>
|
||||||
<th>Data</th>
|
{% for log in pagination %}
|
||||||
</tr>
|
<tr class="border-t border-stroke hover:bg-gray-50">
|
||||||
</thead>
|
<td class="px-2 py-3 font-medium">{{ log.id }}</td>
|
||||||
<tbody>
|
<td class="px-2 py-3 whitespace-nowrap">{{ log.created|date('d.m.Y H:i:s') }}</td>
|
||||||
{% for log in pagination %}
|
<td class="px-2 py-3">{{ log.shopName }}</td>
|
||||||
<tr {% if loop.index is odd %}class="color"{% endif %}>
|
<td class="px-2 py-3">
|
||||||
<td>{{ log.id }}</td>
|
<a href="mailto:{{ log.contactEmail }}" class="text-psc-500 hover:underline">{{ log.contactEmail }}</a>
|
||||||
<td>{{ log.created|date('d.m.Y H:i:s') }}</td>
|
</td>
|
||||||
<td>{{ log.shopName }}</td>
|
<td class="px-2 py-3">
|
||||||
<td>{{ log.contactEmail }}</td>
|
<span class="inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
|
||||||
<td>{{ log.module }}</td>
|
{{ log.module }}
|
||||||
<td>{{ log.referenceUuid }}</td>
|
</span>
|
||||||
<td>{{ log.message }}</td>
|
</td>
|
||||||
<td>{% for a, b in log.data %}
|
<td class="px-2 py-3">
|
||||||
{{ a }}:
|
<span class="text-xs font-mono text-gray-600">{{ log.referenceUuid }}</span>
|
||||||
{% if b is iterable %}
|
</td>
|
||||||
{% for i in b %}
|
<td class="px-2 py-3 max-w-xs">
|
||||||
{% if i is iterable %}
|
<div class="text-sm text-gray-900">{{ log.message }}</div>
|
||||||
{{ i|join(',') }}
|
</td>
|
||||||
|
<td class="px-2 py-3 max-w-md">
|
||||||
|
{% if log.data %}
|
||||||
|
<div class="text-xs space-y-1">
|
||||||
|
{% for a, b in log.data %}
|
||||||
|
<div class="flex gap-1">
|
||||||
|
<span class="font-semibold text-gray-700">{{ a }}:</span>
|
||||||
|
<span class="text-gray-600">
|
||||||
|
{% if b is iterable %}
|
||||||
|
{% for i in b %}
|
||||||
|
{% if i is iterable %}
|
||||||
|
{{ i|join(', ') }}
|
||||||
|
{% else %}
|
||||||
|
{{ i }}
|
||||||
|
{% endif %}
|
||||||
|
{% if not loop.last %}, {% endif %}
|
||||||
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ i }}
|
{{ b }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
</span>
|
||||||
{% else %}
|
</div>
|
||||||
{{ b }}
|
{% endfor %}
|
||||||
{% endif %}<br/>
|
</div>
|
||||||
{% endfor %}</td>
|
{% endif %}
|
||||||
</tr>
|
</td>
|
||||||
{% endfor %}
|
</tr>
|
||||||
</tbody>
|
{% endfor %}
|
||||||
</table>
|
</tbody>
|
||||||
</div>
|
</table>
|
||||||
<div class="navigation">
|
</div>
|
||||||
{{ knp_pagination_render(pagination) }}
|
|
||||||
</div>
|
<div class="mt-4">
|
||||||
</div>
|
{{ knp_pagination_render(pagination, 'tailwind_pagination.html.twig') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Loading…
Reference in New Issue
Block a user