{% import 'admin/static.html' as admin_static with context %} {% import 'admin/lib.html' as lib with context %} {# Override of flask-admin's fileadmin modal partial: the upstream version does not render flashed messages inside the modal, so save errors (e.g. "Permission denied" on the filesystem, quota hits, …) were only visible after a subsequent page load. Rendering flashes here — inside the modal body — makes the error appear exactly where the user just clicked Save. #} {% block body %} {% endblock %} {% block tail %} {% endblock %}