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