Shifted NavigationManager caching to use node instances rather than node pks. Improve...
[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>{{ 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                         <div class="row cells-{{ inline_admin_form.fields|length }}{% if not inline_admin_form.fields|length_is:"2" %} cells{% endif %}{% if inline_admin_form.errors %} errors{% endif %} {% for field in inline_admin_form %}{{ field.field.name }} {% endfor %}{% if forloop.last %} empty-form{% endif %}">
22                                 <div{% if not inline_admin_form.fields|length_is:"2" %} class="cell"{% endif %}>
23                                         <div class="column span-4"><label class='required' for="{{ inline_admin_form.form.content.auto_id }}{{ inline_admin_form.form.content_id.auto_id }}">{{ inline_admin_form.form.verbose_name|capfirst }}:</label>{{ inline_admin_form.form.name.as_hidden }}</div>
24                                 {% for fieldset in inline_admin_form %}{% for line in fieldset %}{% for field in line %}
25                                         {% if field.field.name != 'name' %}
26                                         <div class="column span-flexible">
27                                                 {% if field.is_readonly %}
28                                                         <p class="readonly">{{ field.contents }}</p>
29                                                 {% else %}
30                                                         {{ field.field }}
31                                                 {% endif %}
32                                                 {{ inline_admin_form.errors }}
33                                                 {% if field.field.field.help_text %}
34                                                         <p class="help">{{ field.field.field.help_text|safe }}</p>
35                                                 {% endif %}
36                                         </div>
37                                         {% endif %}
38                                 {% endfor %}{% endfor %}{% endfor %}
39                                 </div>
40                         </div>
41                 {% endfor %}
42         </fieldset>
43 {% endif %}