Files
genshin-world/templates/_dashboard/map/.index.html.twig
2025-07-15 23:39:10 +02:00

38 lines
1.0 KiB
Twig

{% extends 'base.html.twig' %}
{% block body %}
<h1>Map index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>File</th>
<th>ModifiedAt</th>
<th>Version</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for map in maps %}
<tr>
<td>{{ map.id }}</td>
<td>{{ map.file }}</td>
<td>{{ map.modifiedAt ? map.modifiedAt|date('Y-m-d H:i:s') : '' }}</td>
<td>{{ map.version }}</td>
<td>
{#<a href="{{ path('map_show', {'id': map.id}) }}">show</a>#}
<a href="{{ path('bo_map_edit', {'id': map.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="5">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('bo_map_new') }}">Create new</a>
{% endblock %}