Ticket #2612: admin-formatting.diff
File admin-formatting.diff, 1.7 KB (added by , 18 years ago) |
---|
-
django/contrib/admin/media/css/forms.css
5 5 .form-row { overflow:hidden; padding:8px 12px; font-size:11px; border-bottom:1px solid #eee; } 6 6 .form-row img, .form-row input { vertical-align:middle; } 7 7 form .form-row p { padding-left:0; font-size:11px; } 8 .form-row div.form-row-item { float: left }; 8 9 9 10 /* FORM LABELS */ 10 11 form h4 { margin:0 !important; padding:0 !important; border:none !important; } … … 57 58 .vURLField { width:30em; } 58 59 .vLargeTextField, .vXMLLargeTextField { width:48em; } 59 60 .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
2 2 <div class="{{ class_names }}" > 3 3 {% for bound_field in bound_fields %}{{ bound_field.html_error_list }}{% endfor %} 4 4 {% for bound_field in bound_fields %} 5 <div class="form-row-item"> 5 6 {% if bound_field.has_label_first %}{% field_label bound_field %}{% endif %} 6 7 {% field_widget bound_field %} 7 8 {% if not bound_field.has_label_first %}{% field_label bound_field %}{% endif %} 8 9 {% if bound_field.field.help_text %}<p class="help">{{ bound_field.field.help_text }}</p>{% endif %} 10 </div> 9 11 {% endfor %} 10 12 </div>