mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
commments: add basic form in template
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user