1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

Pulled a fieldset tag out of the stacked edit inline template. Some design work is needed to actually support this, and trunk won't do it either.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6055 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Joseph Kocherhans 2007-09-07 02:45:32 +00:00
parent 6aba7b25d9
commit 016f84ba34

View File

@ -3,7 +3,6 @@
<fieldset class="module aligned {{ bfset.fieldset.classes }}"> <fieldset class="module aligned {{ bfset.fieldset.classes }}">
<h2>{{ bound_inline.verbose_name|title }}&nbsp;#{{ forloop.counter }}</h2> <h2>{{ bound_inline.verbose_name|title }}&nbsp;#{{ forloop.counter }}</h2>
{% for bfset in bound_inline_object.form %} {% for bfset in bound_inline_object.form %}
<fieldset class="module aligned {{ bfset.fieldset.classes }}">
{% if bfset.fieldset.name %}<h2>{{ bfset.fieldset.name }}</h2>{% endif %} {% if bfset.fieldset.name %}<h2>{{ bfset.fieldset.name }}</h2>{% endif %}
{% if bfset.fieldset.description %}<div class="description">{{ bfset.fieldset.description }}</div>{% endif %} {% if bfset.fieldset.description %}<div class="description">{{ bfset.fieldset.description }}</div>{% endif %}
{% for line in bfset %} {% for line in bfset %}
@ -21,7 +20,6 @@
{% endfor %} {% endfor %}
{{ bound_inline_object.pk_field.field }} {{ bound_inline_object.pk_field.field }}
{% if bound_inline.formset.deletable %}<div class="form-row">{{ bound_inline_object.deletion_field.field }} {{ bound_inline_object.deletion_field.label_tag }}</div>{% endif %} {% if bound_inline.formset.deletable %}<div class="form-row">{{ bound_inline_object.deletion_field.field }} {{ bound_inline_object.deletion_field.label_tag }}</div>{% endif %}
</fieldset>
{% endfor %} {% endfor %}
</fieldset> </fieldset>
{% endfor %} {% endfor %}