{% extends "vantage/base.html" %} {% load static vantage vantage_slots i18n %} {% block head %} {% if inlines %}{% endif %} {% endblock %} {% block content %} {% comment %} enctype is unconditional: a panel gains a FileField the day someone adds one, and a form that silently drops the upload because the encoding was decided at template time is a bug nobody reports as one. {% endcomment %}
{% endblock %} {% block scripts %} {% comment %} Only the form pages carry relation pickers, so only they pay for the file. It enhances every [data-vantage-combobox] on the page, inlines included. {% endcomment %} {% if inlines %}{% endif %} {% comment %} Enhances every textarea[data-markdown] โ every RICHTEXT field renders as one, see vantage.widgets.infer_widget. Loaded unconditionally for the same reason as combobox.js above: whether this page has one is a per-request fact the template would otherwise have to thread through just to skip one small file. {% endcomment %} {% endblock %}