{% load ec_calendar i18n %} {# CalendarInline: the object's calendar, folded if it says so (calendar_collapsed), with its filters (calendar_filter_fields: selects without a name, not of the object's form). Its (empty) formset's management form, for the object's form. #}
{{ inline_admin_formset.formset.management_form }} {% with collapsed=inline_admin_formset.opts.calendar_collapsed title=inline_admin_formset.opts.verbose_name_plural|capfirst %}
{% if collapsed is None %}

{{ title }}

{% include "django_ec_calendar/admin/inline_calendar.html" %} {% else %}

{{ title }}

{% include "django_ec_calendar/admin/inline_calendar.html" %}
{% endif %}
{% endwith %}