{%- 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 -%}