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.keys|length }}{% if not form.fields.keys|length_is:"2" %} cells{% endif %}{% if form.errors %} errors{% endif %} {% for field in form %}{{ field.field.name }} {% endfor %}{% comment %} {% if forloop.last %} empty-form{% endif %}{% endcomment %}">
24 {{ form.non_field_errors }}
25 <div{% if not form.fields.keys|length_is:"2" %} class="cell"{% endif %}>
26 <div class="column span-4"><label class='required' for="{{ form.content.auto_id }}{{ form.content_id.auto_id }}">{{ form.verbose_name|capfirst }}:</label></div>
27 {% for field in form %}
28 {% if not field.is_hidden %}
29 <div class="column span-flexible">
32 {% if field.field.help_text %}
33 <p class="help">{{ field.field.help_text|safe }}</p>