{% from 'macro/form.html' import render_modal_form with context %} {% block body %} {{ render_modal_form(form,cancel_url,extra,form_opts,action=url_for('.create_view', url=return_url)) }} {% endblock %}