{% extends 'base.html.twig' %} {% block title %}Post - {{ post.title }}{% endblock %} {% block body %}

{{ post.title }}

{{ post.description }}

{{ post.content }}

Comments

{% for comment in post.comments|filter(c => c.valid) %}
{{ comment.username }}

{{ comment.content }}

{% endfor %}

Post a new comment

{{ form_start(form) }} {{ form_errors(form) }}
{{ form_widget(form.username) }} {{ form_label(form.username, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.content) }} {{ form_label(form.content, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_row(form.comment) }} {{ form_end(form) }}
{% endblock %}