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