{% if opts.is_ajax -%} {% set atts = {'data-url': action, 'class': 'ajax-form'} -%} {% else -%} {% set atts = {'action': action} -%} {% endif -%} {% do atts.update({ 'method': method, 'enctype': "multipart/form-data", 'role': 'form' }) -%} {{ form._renderer['body']() }} {% if opts.submit_text is defined -%} {% endif -%} {% if caller -%} {{ caller({'buttons': True}) }} {% endif -%}