{% extends 'layout.html.twig' %} {% set adminMenu = true %} {% block title %}{{ title }}{% endblock %} {% block content %}

{{ block('title') }}

{% for flashMessage in app.session.flashbag.get('success') %}
{{ flashMessage }}
{% endfor %}
{{ form_start(commentForm, { 'attr': {'class': 'form-horizontal'} }) }}
{{ form_label(commentForm.author, null, { 'label_attr': { 'class': 'col-sm-4 control-label' }}) }}
{{ form_errors(commentForm.author) }} {{ form_widget(commentForm.author, { 'attr': { 'class': 'form-control' }}) }}
{{ form_label(commentForm.content, null, { 'label_attr': { 'class': 'col-sm-4 control-label' }}) }}
{{ form_errors(commentForm.content) }} {{ form_widget(commentForm.content, { 'attr': { 'class': 'form-control', 'rows': '4' }}) }}
{{ form_label(commentForm.comAModerer, null, { 'label_attr': { 'class': 'col-sm-4 control-label' }}) }}
{{ form_errors(commentForm.comAModerer) }} {{ form_widget(commentForm.comAModerer, { 'attr': { 'class': 'form-control' }}) }}
{{ form_label(commentForm.idparent, null, { 'label_attr': { 'class': 'col-sm-4 control-label' }}) }}
{{ form_errors(commentForm.idparent) }} {{ form_widget(commentForm.idparent, { 'attr': { 'class': 'form-control' }}) }}
{{ form_end(commentForm) }}
{% endblock %}