1 {% load i18n adminmedia %}
4 {{ inline_admin_formset.formset.management_form }}
5 {% comment %}Don't render the formset at all if there aren't any forms.{% endcomment %}
6 {% if inline_admin_formset.formset.forms %}
7 <fieldset class="module{% if inline_admin_formset.opts.classes %} {{ inline_admin_formset.opts.classes|join:" " }}{% endif %}">
8 <h2{% if "collapse" in inline_admin_formset.opts.classes %} class="collapse-handler"{% endif %}>{{ inline_admin_formset.opts.verbose_name_plural|capfirst }}</h2>
9 {{ inline_admin_formset.formset.non_form_errors }}
10 {% for inline_admin_form in inline_admin_formset %}
11 {% if inline_admin_form.has_auto_field %}{{ inline_admin_form.pk_field.field }}{% endif %}
12 {{ inline_admin_form.fk_field.field }}
14 {% for fieldset in inline_admin_form %}
15 {% for line in fieldset %}
16 {% for field in line %}
17 {% if field.is_hidden %} {{ field.field }} {% endif %}
20 {% endfor %}{% endspaceless %}
22 {% for form in inline_admin_formset.formset.forms %}
23 <div class="row cells-{{ form.fields|length }} cells{% if form.errors %} errors{% endif %}{% for field in form %} {{ field.field.name }}{% endfor %}">
24 {{ form.non_field_errors }}
26 {% for field in form %}
27 {% if not field.is_hidden %}
28 {% comment %}This will be true for one field: the content/content reference{% endcomment %}
29 <div class="column span-4"><label class='required' for="{{ form.content.auto_id }}{{ form.content_id.auto_id }}">{{ form.verbose_name|capfirst }}:</label></div>
30 <div class="column span-flexible">
33 {% if field.field.help_text %}
34 <p class="help">{{ field.field.help_text|safe }}</p>