Ticket #9460: submit_button_blocks_r9290.diff

File submit_button_blocks_r9290.diff, 1.2 KB (added by kosmik, 16 years ago)

Adds blocks around the top and bottom submit buttons.

  • django/contrib/admin/templates/admin/change_form.html

     
    3232<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}
    3333<div>
    3434{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
    35 {% if save_on_top %}{% submit_row %}{% endif %}
     35{% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %}
    3636{% if errors %}
    3737    <p class="errornote">
    3838    {% blocktrans count errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
     
    5252
    5353{% block after_related_objects %}{% endblock %}
    5454
    55 {% submit_row %}
     55{% block submit_buttons_bottom %}{% submit_row %}{% endblock %}
    5656
    5757{% if add %}
    5858   <script type="text/javascript">document.getElementById("{{ adminform.first_field.auto_id }}").focus();</script>
Back to Top