{% extends "adminsite/base.html" %} {% import "adminsite/_icons.html" as icons %} {% import "adminsite/_values.html" as values %} {% block page_title %}{{ heading }} · {{ title }}{% endblock %} {% block breadcrumb %} {% endblock %} {% block header_class %}lg:pt-2 lg:pb-5{% endblock %} {% block header %} {#- The first choice on the page, such as a status, stands beside the name. -#} {% set first = namespace(path=none, value="") %} {% for path, label, value in rows if first.path is none and value and view.field_for(path).widget == "select" %} {% set first.path = path %}{% set first.value = value %} {% endfor %}

{{ heading }}

{% if first.path %} {{ values.badge(view.field_for(first.path), view.value_at(record, first.path), first.value) }} {% endif %}
{% endblock %} {% block header_actions %} {% if can_edit %} {{ icons.icon("pencil") }}{{ _('Edit') }} {% endif %} {#- The menu holds delete, and on a phone the record's actions as well. -#} {% if can_delete or record_actions %} {% endif %} {% endblock %} {% block content %} {% include "adminsite/_action_forms.html" %}
{% if history is not none %}
{% else %}
{% endif %}
{% if history is not none %}
{% set items = history %} {% set show_record = False %} {% include "adminsite/_history.html" %} {% if older_history %} {{ _('Older entries are on the Activity page') }} {% endif %}
{% endif %}
{% if can_delete %} {% endif %} {% endblock %}