Removed backwards-compatibility for database template loader. Added VERSION information.
[philo.git] / templates / admin / philo / edit_inline / grappelli_tabular_container.html
1 {% load i18n adminmedia %}
2
3 <!-- group -->
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 }}
13                         {% spaceless %}
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 %}
18                                 {% endfor %}
19                         {% endfor %}
20                         {% endfor %}{% endspaceless %}
21                 {% endfor %}
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 }}
25                                 <div>
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">
31                                                 {{ field }}
32                                                 {{ field.errors }}
33                                                 {% if field.field.help_text %}
34                                                         <p class="help">{{ field.field.help_text|safe }}</p>
35                                                 {% endif %}
36                                         </div>
37                                         {% endif %}
38                                 {% endfor %}
39                                 </div>
40                         </div>
41                 {% endfor %}
42         </fieldset>
43 {% endif %}