Ticket #9460: change_form_all_in_blocks.diff
File change_form_all_in_blocks.diff, 2.4 KB (added by , 16 years ago) |
---|
-
django/contrib/admin/templates/admin/change_form.html
21 21 </div> 22 22 {% endif %}{% endblock %} 23 23 24 {% block content %} <div id="content-main">24 {% block content %}{% block content_top %}<div id="content-main">{% endblock %} 25 25 {% block object-tools %} 26 26 {% if change %}{% if not is_popup %} 27 27 <ul class="object-tools"><li><a href="history/" class="historylink">{% trans "History" %}</a></li> … … 29 29 </ul> 30 30 {% endif %}{% endif %} 31 31 {% endblock %} 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 %} 32 33 {% block form_top %} 34 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form"> 33 35 <div> 34 36 {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %} 35 {% if save_on_top %}{% submit_row %}{% endif %} 37 {% endblock %} 38 39 {% block submit_row_top %}{% if save_on_top %}{% submit_row %}{% endif %}{% endblock %} 40 41 {% block errors %} 36 42 {% if errors %} 37 43 <p class="errornote"> 38 44 {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} 39 45 </p> 40 46 <ul class="errorlist">{% for error in adminform.form.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul> 41 47 {% endif %} 48 {% endblock %} 42 49 50 {% block fieldsets %} 43 51 {% for fieldset in adminform %} 44 52 {% include "admin/includes/fieldset.html" %} 45 53 {% endfor %} 54 {% endblock %} 46 55 47 56 {% block after_field_sets %}{% endblock %} 48 57 58 {% block inline_admin_formsets %} 49 59 {% for inline_admin_formset in inline_admin_formsets %} 50 60 {% include inline_admin_formset.opts.template %} 51 61 {% endfor %} 62 {% endblock %} 52 63 53 64 {% block after_related_objects %}{% endblock %} 54 65 66 {% block submit_row_bottom %} 55 67 {% submit_row %} 68 {% endblock %} 56 69 70 {% block form_bottom %} 57 71 {% if add %} 58 72 <script type="text/javascript">document.getElementById("{{ adminform.first_field.auto_id }}").focus();</script> 59 73 {% endif %} … … 62 76 {% prepopulated_fields_js %} 63 77 64 78 </div> 65 </form> </div>79 </form> 66 80 {% endblock %} 81 {% block content_bottom %}</div>{% endblock %} 82 {% endblock %}