Skip to content

Commit

Permalink
Fixes #16186 -- remove inline CSS in contrib.admin
Browse files Browse the repository at this point in the history
Thanks to bsimons for the report and the patches from cscheng, nvandijk!

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
idan committed Jun 9, 2011
1 parent 865d684 commit dfcde78
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions django/contrib/admin/media/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ table thead th.sorted a span.clear {
}

#sorting-popup-div {
display: none;
position: absolute;
background-color: white;
border: 1px solid #ddd;
Expand Down
4 changes: 4 additions & 0 deletions django/contrib/admin/media/css/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ fieldset.monospace textarea {
overflow: hidden;
}

body.popup .submit-row {
overflow: auto;
}

.submit-row input {
margin: 0 0 0 5px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</div>

{# Sorting popup: #}
<div style="display: none;" id="sorting-popup-div">
<div id="sorting-popup-div">
<table>
<caption>
{% trans "Sorting by:" %}
Expand Down
2 changes: 1 addition & 1 deletion django/contrib/admin/templates/admin/submit_line.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load i18n %}
<div class="submit-row" {% if is_popup %}style="overflow: auto;"{% endif %}>
<div class="submit-row">
{% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" name="_save" {{ onclick_attrib }}/>{% endif %}
{% if show_delete_link %}<p class="deletelink-box"><a href="delete/" class="deletelink">{% trans "Delete" %}</a></p>{% endif %}
{% if show_save_as_new %}<input type="submit" value="{% trans 'Save as new' %}" name="_saveasnew" {{ onclick_attrib }}/>{%endif%}
Expand Down

0 comments on commit dfcde78

Please sign in to comment.