{% extends "admin/base_site.html" %} {% load i18n l10n admin_urls static admin_modify cc_admin %} {% block title %}{% if errors %}{% translate "Error:" %} {% endif %}{{ block.super }}{% endblock %} {% block extrahead %}{{ block.super }} {% cc_media media %} {% endblock %} {% block coltype %}colM{% endblock %} {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-form{% endblock %} {% if not is_popup %} {% block breadcrumbs %} {% endblock %} {% endif %} {% block content_title %} {% if cc.back_button and not is_popup and has_view_permission %}{% icon "arrow-left" %}{{ opts.verbose_name_plural|capfirst }}{% endif %}

{{ opts.verbose_name|capfirst }}{% if change and original.pk %} ยท #{{ original.pk|unlocalize }}{% endif %}

{% if add %}{% blocktranslate with name=opts.verbose_name %}New {{ name }}{% endblocktranslate %}{% else %}{{ original|truncatewords:"18" }}{% endif %}

{% if subtitle and add %}

{{ subtitle }}

{% endif %} {% endblock %} {% block content_subtitle %}{% endblock %} {% block object-tools %} {% if not is_popup %}
{% include "cc_admin/action_buttons.html" with actions=cc_detail_actions %} {% if change %}{% block object-tools-items %}{% change_form_object_tools %}{% endblock %}{% endif %}
{% endif %} {% endblock %} {% block content %}
{% csrf_token %}{% block form_top %}{% endblock %}
{% if is_popup %}{% endif %} {% if to_field %}{% endif %} {% if source_model %}{% endif %} {% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %} {% if cc_model_admin.change_form_before_template %}{% include cc_model_admin.change_form_before_template %}{% endif %} {% if errors %}
{% icon "circle-exclamation-point" %}
{% blocktranslate count counter=errors|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}{{ adminform.form.non_field_errors }}
{% endif %} {% with split=adminform|cc_tab_fieldsets %} {% cc_inline_tabs inline_admin_formsets as inline_tabs %} {% if split.tabs or inline_tabs %} {% endif %}
{% block field_sets %}
{% for fieldset in split.rest %}{% if not fieldset|cc_has_class:"sidebar" %} {% include "admin/includes/fieldset.html" with heading_level=2 prefix="fieldset" id_prefix=0 id_suffix=forloop.counter0 %} {% endif %}{% endfor %}
{% for fieldset in split.tabs %}
{% include "admin/includes/fieldset.html" with heading_level=2 prefix="fieldset" id_prefix=1 id_suffix=forloop.counter0 %}
{% endfor %} {% endblock %} {% block after_field_sets %}{% endblock %} {% block inline_field_sets %} {% for inline_admin_formset in inline_admin_formsets %} {% if inline_admin_formset.opts.tab %}
{% else %}
{% endif %} {% include inline_admin_formset.opts.template %}
{% endfor %} {% endblock %} {% if cc_form_sections %}
{% for html in cc_form_sections %}
{{ html }}
{% endfor %}
{% endif %} {% block after_related_objects %}{% endblock %} {% if cc_model_admin.change_form_after_template %}{% include cc_model_admin.change_form_after_template %}{% endif %}
{% if adminform|cc_has_aside %} {% endif %}
{% endwith %} {% block submit_buttons_bottom %}{% submit_row %}{% endblock %} {% block admin_change_form_document_ready %} {% endblock %} {% prepopulated_fields_js %}
{% endblock %}