mirror of https://github.com/django/django.git
Fixed #8631 -- Corrected a display issue with the popup submit_row where 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
This commit is contained in:
parent
24bacb19de
commit
30c7ce90c5
|
@ -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%}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue