Permalink
Browse files

Fixed #2612 -- Fixed admin formatting when help_text is used with mul…

…tiple fields on the same line.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent ce47d4a commit eefec151d1443dfadaf0ef24f7422d4f22f52b43 @brosner brosner committed Sep 1, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/contrib/admin/templates/admin/includes/fieldset.html
@@ -5,12 +5,14 @@
<div class="form-row{% if line.errors %} errors{% endif %} {% for field in line %}{{ field.field.name }} {% endfor %} ">
{{ line.errors }}
{% for field in line %}
+ <div class="float-left">
{% if field.is_checkbox %}
{{ field.field }}{{ field.label_tag }}
{% else %}
{{ field.label_tag }}{{ field.field }}
{% endif %}
{% if field.field.field.help_text %}<p class="help">{{ field.field.field.help_text|safe }}</p>{% endif %}
+ </div>
{% endfor %}
</div>
{% endfor %}

0 comments on commit eefec15

Please sign in to comment.