{{ form_start(form,{'attr': {'role':'form','id': 'pageForm'}}) }}
{{ form_widget(form.title, { 'attr': {'class': 'form-control example3', 'placeholder': 'Enter news title','name':'title','id':'title','required':true} }) }}
{{ form_errors(form.title) }}

{{ form_widget(form.category, { 'attr': {'class': 'form-control', 'placeholder': 'Enter news category','name':'category','id':'category','required':true} }) }}
{{ form_errors(form.category) }}

{{ form_widget(form.description, { 'attr': {'class': 'form-control', 'placeholder': 'Enter news description','name':'description','id':'description','required':true} }) }}
{{ form_errors(form.description) }}

{{ form_widget(form.content, { 'attr': {'class': 'form-control ckeditor', 'placeholder': 'Enter news content','name':'content','id':'content','required':true} }) }}
{{ form_errors(form.content) }}

{% for gallerie in form.gallerie %}
{{ form_label(gallerie.name) }}
{{ form_widget(gallerie.name,{'attr':{'class':'form-controller','required':true}} ) }}
{{ form_label(gallerie.file) }}
{{ form_widget(gallerie.file,{'attr':{'class':'form-controller','required':true}} ) }}
{% endfor %}

{{ form_end(form) }}