{%- if not modal -%} {% extends theme('admin/master.html') %} {%- endif -%} {% import theme('admin/lib.html') as lib with context %} {% block body %} {%- if modal -%} {{ lib.render_form(form, dir_url, action=request.url, is_modal=True) }} {%- else -%}

{{ header_text }}

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