Ticket #9460: submit_button_blocks_r9290.diff
File submit_button_blocks_r9290.diff, 1.2 KB (added by , 16 years ago) |
---|
-
django/contrib/admin/templates/admin/change_form.html
32 32 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %} 33 33 <div> 34 34 {% 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 %} 36 36 {% if errors %} 37 37 <p class="errornote"> 38 38 {% blocktrans count errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} … … 52 52 53 53 {% block after_related_objects %}{% endblock %} 54 54 55 {% submit_row%}55 {% block submit_buttons_bottom %}{% submit_row %}{% endblock %} 56 56 57 57 {% if add %} 58 58 <script type="text/javascript">document.getElementById("{{ adminform.first_field.auto_id }}").focus();</script>