Fixed #2612 -- Fixed admin formatting when help_text is used with multiple fields on the same line.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Brian Rosner 2008-09-01 22:59:43 +00:00
parent ce47d4ab83
commit eefec151d1
1 changed files with 2 additions and 0 deletions

View File

@ -5,12 +5,14 @@
<div class="form-row{% if line.errors %} errors{% endif %} {% for field in line %}{{ field.field.name }} {% endfor %} "> <div class="form-row{% if line.errors %} errors{% endif %} {% for field in line %}{{ field.field.name }} {% endfor %} ">
{{ line.errors }} {{ line.errors }}
{% for field in line %} {% for field in line %}
<div class="float-left">
{% if field.is_checkbox %} {% if field.is_checkbox %}
{{ field.field }}{{ field.label_tag }} {{ field.field }}{{ field.label_tag }}
{% else %} {% else %}
{{ field.label_tag }}{{ field.field }} {{ field.label_tag }}{{ field.field }}
{% endif %} {% endif %}
{% if field.field.field.help_text %}<p class="help">{{ field.field.field.help_text|safe }}</p>{% endif %} {% if field.field.field.help_text %}<p class="help">{{ field.field.field.help_text|safe }}</p>{% endif %}
</div>
{% endfor %} {% endfor %}
</div> </div>
{% endfor %} {% endfor %}