htmxginpongo/ui/templates/index.html.twig

22 lines
601 B
Twig
Raw Permalink Normal View History

2023-10-02 17:42:50 +02:00
{% extends "layout.html.twig" %}
{%- block middle %}
<div class="px-4 py-5 my-5 text-center">
<h1 class="display-5 fw-bold">Hello</h1>
</div>
{% include "message/form.new.html.twig" %}
<div id="messages">
{% if messages|length > 0 %}
<table>
<tr>
<th>Name</th>
<th>Text</th>
<th>Time</th>
</tr>
{% for message in messages %}
{% include "message/fragment.html.twig" %}
{% endfor %}
</table>
{% endif %}
</div>
{% endblock -%}