root / env / lib / python2.7 / site-packages / django / contrib / admin / templates / admin / change_form.html @ 1a305335
History | View | Annotate | Download (2.97 KB)
1 | 1a305335 | officers | {% extends "admin/base_site.html" %} |
---|---|---|---|
2 | {% load i18n admin_static admin_modify %} |
||
3 | {% load url from future %} |
||
4 | {% load admin_urls %} |
||
5 | |||
6 | {% block extrahead %}{{ block.super }} |
||
7 | {% url 'admin:jsi18n' as jsi18nurl %} |
||
8 | <script type="text/javascript" src="{{ jsi18nurl|default:"../../../jsi18n/" }}"></script> |
||
9 | {{ media }} |
||
10 | {% endblock %} |
||
11 | |||
12 | {% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" />{% endblock %} |
||
13 | |||
14 | {% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %} |
||
15 | |||
16 | {% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %} |
||
17 | |||
18 | {% if not is_popup %} |
||
19 | {% block breadcrumbs %} |
||
20 | <div class="breadcrumbs"> |
||
21 | <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a> |
||
22 | › <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ app_label|capfirst|escape }}</a> |
||
23 | › {% if has_change_permission %}<a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} |
||
24 | › {% if add %}{% trans 'Add' %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
|
||
25 | </div>
|
||
26 | {% endblock %} |
||
27 | {% endif %} |
||
28 | |||
29 | {% block content %}<div id="content-main"> |
||
30 | {% block object-tools %} |
||
31 | {% if change %}{% if not is_popup %} |
||
32 | <ul class="object-tools"> |
||
33 | {% block object-tools-items %} |
||
34 | <li><a href="history/" class="historylink">{% trans "History" %}</a></li> |
||
35 | {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%} |
||
36 | {% endblock %} |
||
37 | </ul>
|
||
38 | {% endif %}{% endif %} |
||
39 | {% endblock %} |
||
40 | <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %} |
||
41 | <div>
|
||
42 | {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %} |
||
43 | {% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %} |
||
44 | {% if errors %} |
||
45 | <p class="errornote"> |
||
46 | {% blocktrans count counter=errors|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} |
||
47 | </p>
|
||
48 | {{ adminform.form.non_field_errors }} |
||
49 | {% endif %} |
||
50 | |||
51 | {% block field_sets %} |
||
52 | {% for fieldset in adminform %} |
||
53 | {% include "admin/includes/fieldset.html" %} |
||
54 | {% endfor %} |
||
55 | {% endblock %} |
||
56 | |||
57 | {% block after_field_sets %}{% endblock %} |
||
58 | |||
59 | {% block inline_field_sets %} |
||
60 | {% for inline_admin_formset in inline_admin_formsets %} |
||
61 | {% include inline_admin_formset.opts.template %} |
||
62 | {% endfor %} |
||
63 | {% endblock %} |
||
64 | |||
65 | {% block after_related_objects %}{% endblock %} |
||
66 | |||
67 | {% block submit_buttons_bottom %}{% submit_row %}{% endblock %} |
||
68 | |||
69 | {% if adminform and add %} |
||
70 | <script type="text/javascript">document.getElementById("{{ adminform.first_field.id_for_label }}").focus();</script> |
||
71 | {% endif %} |
||
72 | |||
73 | {# JavaScript for prepopulated fields #} |
||
74 | {% prepopulated_fields_js %} |
||
75 | |||
76 | </div>
|
||
77 | </form></div> |
||
78 | {% endblock %} |