{% extends "djadmin2/bootstrap/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 %} History {% endblock page_title_link %} {% block breadcrumbs %}
  • {% trans "Home" %} /
  • {{ 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 %}
    {% if object %} {% trans "Delete" %} {% endif %} {% include "djadmin2/bootstrap/includes/save_buttons.html" %}
    {% endif %}
    {% csrf_token %} {{ form|crispy }} {% for formset in inlines %}

    {{ formset.model|model_verbose_name_plural|capfirst }}

    {{ formset.management_form }} {% for field in formset|formset_visible_fieldlist %} {% endfor %} {% for inline_form in formset %} {% for field in inline_form.visible_fields %} {% endfor %} {% endfor %}
    {{ field }}
    {% if forloop.first %} {% for hidden_field in inline_form.hidden_fields %} {{ hidden_field }} {% endfor %} {% endif %} {{ field }}
    {% endfor %}
    {% if view.model_admin.save_on_bottom %}
    {% if object %} {% trans "Delete" %} {% endif %} {% include "djadmin2/bootstrap/includes/save_buttons.html" %}
    {% endif %} {% endblock content %}