X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/2b5ce98a189f8e69495ade8fc4bef89311e4922b..f69e27528218f5db3e4fafd536be49f473e3b8fd:/templates/admin/philo/edit_inline/grappelli_tabular_container.html diff --git a/templates/admin/philo/edit_inline/grappelli_tabular_container.html b/templates/admin/philo/edit_inline/grappelli_tabular_container.html index 5602a38..59aba8f 100644 --- a/templates/admin/philo/edit_inline/grappelli_tabular_container.html +++ b/templates/admin/philo/edit_inline/grappelli_tabular_container.html @@ -5,7 +5,7 @@ {% comment %}Don't render the formset at all if there aren't any forms.{% endcomment %} {% if inline_admin_formset.formset.forms %}
-

{{ inline_admin_formset.opts.verbose_name_plural|capfirst }}

+ {{ inline_admin_formset.opts.verbose_name_plural|capfirst }} {{ inline_admin_formset.formset.non_form_errors }} {% for inline_admin_form in inline_admin_formset %} {% if inline_admin_form.has_auto_field %}{{ inline_admin_form.pk_field.field }}{% endif %} @@ -18,24 +18,23 @@ {% endfor %} {% endfor %} {% endfor %}{% endspaceless %} -
- -
{{ inline_admin_form.form.name.as_hidden }}
- {% for fieldset in inline_admin_form %}{% for line in fieldset %}{% for field in line %} - {% if field.field.name != 'name' %} + {% endfor %} + {% for form in inline_admin_formset.formset.forms %} +
+ {{ form.non_field_errors }} + +
+ {% for field in form %} + {% if not field.is_hidden %}
- {% if field.is_readonly %} -

{{ field.contents }}

- {% else %} - {{ field.field }} - {% endif %} - {{ inline_admin_form.errors }} - {% if field.field.field.help_text %} -

{{ field.field.field.help_text|safe }}

+ {{ field }} + {{ field.errors }} + {% if field.field.help_text %} +

{{ field.field.help_text|safe }}

{% endif %}
{% endif %} - {% endfor %}{% endfor %}{% endfor %} + {% endfor %}
{% endfor %}