Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #8631 -- Corrected a display issue with the popup submit_row wh…

…ere the Save button would overflow. Thanks btaylordesign for report and initial patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8762 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 30c7ce90c5b518696859fc667aa2996d0e7a43e4 1 parent 24bacb1
@brosner brosner authored
View
2  django/contrib/admin/templates/admin/submit_line.html
@@ -1,5 +1,5 @@
{% load i18n %}
-<div class="submit-row">
+<div class="submit-row" {% if is_popup %}style="overflow: auto;"{% endif %}>
{% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" name="_save" {{ onclick_attrib }}/>{% endif %}
{% if show_delete_link %}<p class="float-left"><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%}
View
1  django/contrib/admin/templatetags/admin_modify.py
@@ -33,6 +33,7 @@ def submit_row(context):
'show_save_and_add_another': context['has_add_permission'] and
not is_popup and (not save_as or context['add']),
'show_save_and_continue': not is_popup and context['has_change_permission'],
+ 'is_popup': is_popup,
'show_save': True
}
submit_row = register.inclusion_tag('admin/submit_line.html', takes_context=True)(submit_row)
Please sign in to comment.
Something went wrong with that request. Please try again.