{% if form %} {{ form.render({ formattingTemplate: 'grid/index.twig' }) }} {% endif %}