commments: add basic form in template

This commit is contained in:
2021-12-14 10:25:36 +01:00
parent 8b2a8544b8
commit 530267a9b0
3 changed files with 29 additions and 4 deletions

View File

@@ -29,6 +29,25 @@
{% block content %}
<div class="accompanyingcourse-comment-list">
<h1>{{ block('title') }}</h1>
<div class="form my-5">
{{ form_start(form) }}
{{ form_errors(form) }}
{{ form_widget(form.content) }}
<ul class="record_actions">
<li>
<button class="btn btn-create" type="submit">{{ 'Post a new comment'|trans }}</button>
{#
<button class="btn btn-update" type="submit">{{ 'Edit a comment'|trans }}</button>
#}
</li>
</ul>
{{ form_end(form) }}
</div>
<div class="flex-table">
{% if accompanyingCourse.pinnedComment %}