hegresphere/templates/message/index.html.twig

38 lines
1.1 KiB
Twig
Raw Normal View History

2024-11-21 17:04:56 +01:00
{% extends 'base.html.twig' %}
{% block title %}Message index{% endblock %}
{% block body %}
<h1>Message index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Content</th>
<th>SendingDate</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for message in messages %}
<tr>
<td>{{ message.id }}</td>
<td>{{ message.content }}</td>
<td>{{ message.sendingDate ? message.sendingDate|date('Y-m-d H:i:s') : '' }}</td>
<td>
<a href="{{ path('app_message_show', {'id': message.id}) }}">show</a>
<a href="{{ path('app_message_edit', {'id': message.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="4">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_message_new') }}">Create new</a>
{% endblock %}