{%- if not modal -%} {% extends 'admin/master.html' %} {%- endif -%} {% import 'admin/lib.html' as lib with context %} {% block body %} {%- if modal -%} {# content added to modal-content #} {%- else -%}

{{ header_text }}

{{ lib.render_form(form, dir_url) }} {%- endif -%} {% endblock %} {% block tail %} {%- if modal -%} {%- endif -%} {% endblock %}