{% extends "djadmin2theme_default/base.html" %} {% load admin2_tags i18n crispy_forms_tags %} {# Translators : examples : Add post, Change object #} {% block title %}{% blocktrans with action=action model_name=model_name %}{{ action_name }} {{ model_name }}{% endblocktrans %}{% endblock title %} {# Translators : examples : Add post, Change object #} {% block page_title %}{% blocktrans with action=action model_name=model_name %}{{ action_name }} {{ model_name }}{% endblocktrans %}{% endblock page_title %} {% block page_title_link %} {% if object.pk %} History {% endif %} {% endblock page_title_link %} {% block breadcrumbs %}
  • {% trans "Home" %} /
  • {% firstof app_verbose_name app_label|title %} /
  • {{ model_name_pluralized|title }} /
  • {% if action == 'Add' %}
  • {{ action_name }}
  • {% else %}
  • {{ object }} /
  • {% trans 'Change' %}
  • {% endif %} {% endblock breadcrumbs %} {% block content %}
    {% if view.model_admin.save_on_top %} {% include "djadmin2theme_default/includes/save_buttons.html" %} {% endif %}
    {% csrf_token %} {{ form|crispy }} {% if not form.visible_fields %}

    {% trans "This form doesn't have visible fields. This doesn't mean there isn't hidden fields." %}

    {% endif %} {% for formset in inlines %}

    {{ formset.model|model_verbose_name_plural|capfirst }}

    {{ formset.management_form }} {% include formset.template %} {% endfor %}
    {% if view.model_admin.save_on_bottom %} {% include "djadmin2theme_default/includes/save_buttons.html" %} {% endif %} {% endblock content %}