Ticket #2612: admin-formatting.diff

File admin-formatting.diff, 1.7 KB (added by Andy Dustman <farcepest@…>, 18 years ago)

Proper patch for the fix. Adds a form-row-item class and applies it with a div around every bound_field

  • django/contrib/admin/media/css/forms.css

     
    55.form-row { overflow:hidden; padding:8px 12px; font-size:11px; border-bottom:1px solid #eee; }
    66.form-row img, .form-row input { vertical-align:middle; }
    77form .form-row p { padding-left:0; font-size:11px; }
     8.form-row div.form-row-item { float: left };
    89
    910/* FORM LABELS */
    1011form h4 { margin:0 !important; padding:0 !important; border:none !important; }
     
    5758.vURLField { width:30em; }
    5859.vLargeTextField, .vXMLLargeTextField { width:48em; }
    5960.flatpages-flatpage #id_content { height:40.2em; }
    60 .module table .vPositiveSmallIntegerField { width:2.2em; }
    61  No newline at end of file
     61.module table .vPositiveSmallIntegerField { width:2.2em; }
  • django/contrib/admin/templates/admin/field_line.html

     
    22<div class="{{ class_names }}" >
    33{% for bound_field in bound_fields %}{{ bound_field.html_error_list }}{% endfor %}
    44{% for bound_field in bound_fields %}
     5 <div class="form-row-item">
    56  {% if bound_field.has_label_first %}{% field_label bound_field %}{% endif %}
    67  {% field_widget bound_field %}
    78  {% if not bound_field.has_label_first %}{% field_label bound_field %}{% endif %}
    89  {% if bound_field.field.help_text %}<p class="help">{{ bound_field.field.help_text }}</p>{% endif %}
     10 </div>
    911{% endfor %}
    1012</div>
Back to Top