hegresphere/templates/faq/index.html.twig
2024-11-21 17:04:56 +01:00

40 lines
1.1 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}FAQ index{% endblock %}
{% block body %}
<h1>FAQ index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Question</th>
<th>Answer</th>
<th>UpdateDate</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for faq in faqs %}
<tr>
<td>{{ faq.id }}</td>
<td>{{ faq.question }}</td>
<td>{{ faq.answer }}</td>
<td>{{ faq.updateDate ? faq.updateDate|date('Y-m-d') : '' }}</td>
<td>
<a href="{{ path('app_faq_show', {'id': faq.id}) }}">show</a>
<a href="{{ path('app_faq_edit', {'id': faq.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="5">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_faq_new') }}">Create new</a>
{% endblock %}