Django

Code

root/django/trunk/django/contrib/admin/templates/admin/change_form.html

Revision 7294, 3.2 kB (checked in by mtredinnick, 4 months ago)

Added "svn:eol-style native" to every text file in the tree (*.txt, *.html,
*.py, *.xml and AUTHORS, etc). Added "svn:ignore *.pyc" to some directories in
tests/regressiontests/ that were previously missing it.

Fixed #6545, #6801.

  • Property svn:eol-style set to native
Line 
1 {% extends "admin/base_site.html" %}
2 {% load i18n admin_modify adminmedia %}
3 {% block extrahead %}{{ block.super }}
4 <script type="text/javascript" src="../../../jsi18n/"></script>
5 {% for js in javascript_imports %}{% include_admin_script js %}{% endfor %}
6 {% endblock %}
7 {% block stylesheet %}{% admin_media_prefix %}css/forms.css{% endblock %}
8 {% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}
9 {% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
10 {% block breadcrumbs %}{% if not is_popup %}
11 <div class="breadcrumbs">
12      <a href="../../../">{% trans "Home" %}</a> &rsaquo;
13      <a href="../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
14      {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
15 </div>
16 {% endif %}{% endblock %}
17 {% block content %}<div id="content-main">
18 {% block object-tools %}
19 {% if change %}{% if not is_popup %}
20   <ul class="object-tools"><li><a href="history/" class="historylink">{% trans "History" %}</a></li>
21   {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
22   </ul>
23 {% endif %}{% endif %}
24 {% endblock %}
25 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}
26 <div>
27 {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
28 {% if opts.admin.save_on_top %}{% submit_row %}{% endif %}
29 {% if form.error_dict %}
30     <p class="errornote">
31     {% blocktrans count form.error_dict.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
32     </p>
33 {% endif %}
34 {% for bound_field_set in bound_field_sets %}
35    <fieldset class="module aligned {{ bound_field_set.classes }}">
36     {% if bound_field_set.name %}<h2>{{ bound_field_set.name }}</h2>{% endif %}
37     {% if bound_field_set.description %}<div class="description">{{ bound_field_set.description|safe }}</div>{% endif %}
38     {% for bound_field_line in bound_field_set %}
39         {% admin_field_line bound_field_line %}
40         {% for bound_field in bound_field_line %}
41             {% filter_interface_script_maybe bound_field %}
42         {% endfor %}
43     {% endfor %}
44    </fieldset>
45 {% endfor %}
46 {% block after_field_sets %}{% endblock %}
47 {% if change %}
48    {% if ordered_objects %}
49    <fieldset class="module"><h2>{% trans "Ordering" %}</h2>
50    <div class="form-row{% if form.order_.errors %} error{% endif %} ">
51    {% if form.order_.errors %}{{ form.order_.html_error_list }}{% endif %}
52    <p><label for="id_order_">{% trans "Order:" %}</label> {{ form.order_ }}</p>
53    </div></fieldset>
54    {% endif %}
55 {% endif %}
56 {% for related_object in inline_related_objects %}{% edit_inline related_object %}{% endfor %}
57 {% block after_related_objects %}{% endblock %}
58 {% submit_row %}
59 {% if add %}
60    <script type="text/javascript">document.getElementById("{{ first_form_field_id }}").focus();</script>
61 {% endif %}
62 {% if auto_populated_fields %}
63    <script type="text/javascript">
64    {% auto_populated_field_script auto_populated_fields change %}
65    </script>
66 {% endif %}
67 </div>
68 </form></div>
69 {% endblock %}
Note: See TracBrowser for help on using the browser.