Skip to content
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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 24bacb1 commit 30c7ce90c5b518696859fc667aa2996d0e7a43e4 @brosner brosner committed
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%}
1 django/contrib/admin/templatetags/
@@ -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)

0 comments on commit 30c7ce9

Please sign in to comment.
Something went wrong with that request. Please try again.