{% extends "formlayout.html" %} {% from "baseframe/forms.html" import renderform, ajaxform, tinymce3_editor, tinymce4_editor %} {% block content %} {%- if message %}
{{ message }}
{%- endif %} {{ renderform(form=form, formid=formid, submit=submit, message=message, cancel_url=cancel_url, multipart=multipart) }} {% endblock %} {% block footerscripts %} {% for field in form -%} {%- if field.widget.input_type == 'tinymce3' -%} {{ tinymce3_editor(field) }} {%- elif field.widget.input_type == 'tinymce4' -%} {{ tinymce4_editor(field) }} {%- endif %} {%- endfor %} {{ ajaxform(formid, request, ajax) }} {% endblock %}