PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://code.google.com/p/mango-py/
HTML | 71 lines | 57 code | 14 blank | 0 comment | 0 complexity | 1662092bfa91802a1b8fe9be3f48230a MD5 | raw file
 1{% extends "admin/base_site.html" %}
 2{% load i18n admin_modify adminmedia %}
 3{% load url from future %}
 4
 5{% block extrahead %}{{ block.super }}
 6{% url 'admin:jsi18n' as jsi18nurl %}
 7<script type="text/javascript" src="{{ jsi18nurl|default:"../../../jsi18n/" }}"></script>
 8{{ media }}
 9{% endblock %}
10
11{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
12
13{% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}
14
15{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
16
17{% block breadcrumbs %}{% if not is_popup %}
18<div class="breadcrumbs">
19     <a href="../../../">{% trans "Home" %}</a> &rsaquo;
20     <a href="../../">{{ app_label|capfirst|escape }}</a> &rsaquo;
21     {% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} &rsaquo;
22     {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
23</div>
24{% endif %}{% endblock %}
25
26{% block content %}<div id="content-main">
27{% block object-tools %}
28{% if change %}{% if not is_popup %}
29  <ul class="object-tools">
30    {% block object-tools-items %}
31    <li><a href="history/" class="historylink">{% trans "History" %}</a></li>
32    {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
33    {% endblock %}
34  </ul>
35{% endif %}{% endif %}
36{% endblock %}
37<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 %}
38<div>
39{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
40{% if save_on_top %}{% submit_row %}{% endif %}
41{% if errors %}
42    <p class="errornote">
43    {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
44    </p>
45    {{ adminform.form.non_field_errors }}
46{% endif %}
47
48{% for fieldset in adminform %}
49  {% include "admin/includes/fieldset.html" %}
50{% endfor %}
51
52{% block after_field_sets %}{% endblock %}
53
54{% for inline_admin_formset in inline_admin_formsets %}
55    {% include inline_admin_formset.opts.template %}
56{% endfor %}
57
58{% block after_related_objects %}{% endblock %}
59
60{% submit_row %}
61
62{% if adminform and add %}
63   <script type="text/javascript">document.getElementById("{{ adminform.first_field.id_for_label }}").focus();</script>
64{% endif %}
65
66{# JavaScript for prepopulated fields #}
67{% prepopulated_fields_js %}
68
69</div>
70</form></div>
71{% endblock %}