Ticket #10283: change_form.diff
File change_form.diff, 1.6 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 {% block submit_row_top %}{% if save_on_top %}{% submit_row %}{% endif %}{% endblock %} 36 {% block errors %} 36 37 {% if errors %} 37 38 <p class="errornote"> 38 39 {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} 39 40 </p> 40 41 <ul class="errorlist">{% for error in adminform.form.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul> 41 42 {% endif %} 42 43 {% endblock %} 44 {% block fieldsets %} 43 45 {% for fieldset in adminform %} 44 46 {% include "admin/includes/fieldset.html" %} 45 47 {% endfor %} 48 {% endblock %} 46 49 47 50 {% block after_field_sets %}{% endblock %} 48 51 52 {% block inline_admin_formsets %} 49 53 {% for inline_admin_formset in inline_admin_formsets %} 50 54 {% include inline_admin_formset.opts.template %} 51 55 {% endfor %} 56 {% endblock %} 52 57 53 58 {% block after_related_objects %}{% endblock %} 54 59 60 {% block submit_row_bottom %} 55 61 {% submit_row %} 62 {% endblock %} 56 63 57 64 {% if add %} 58 65 <script type="text/javascript">document.getElementById("{{ adminform.first_field.auto_id }}").focus();</script>