{% extends "base.html" %} {% block title %}{{ admin.get_verbose_name() }} · {{ identity }}{% endblock %} {% block content %}

{{ admin.get_verbose_name() }} · {{ identity }}

← Back to list {% if can_edit %}Edit{% endif %} {% if can_delete %}
{% endif %}
{% for column, value in fields %}
{{ column }}
{% if value is none %}{% elif column in json_columns %}
{{ value }}
{% else %}{{ value }}{% endif %}
{% endfor %}
{% macro inline_cell(f) %} {% if f.widget == 'checkbox' %} {% elif f.widget == 'textarea' or f.widget == 'json' %} {% elif f.widget == 'select' %} {% elif f.widget == 'number' %} {% elif f.widget == 'datetime' %} {% elif f.widget == 'date' %} {% elif f.widget == 'time' %} {% else %} {% endif %} {% if f.error %}{{ f.error }}{% endif %} {% endmacro %} {% for inline in inlines %}

{{ inline.label }}{% if inline.total %} ({{ inline.total }}){% endif %}

{% if inline.add_url %}Add{% endif %}
{% if inline.editable %} {% if inline_error %}

{{ inline_error }}

{% endif %}
{% for col in inline.columns %}{% endfor %}{% if inline.can_delete %}{% endif %} {% for row in inline.rows %} {% for f in row.fields %}{% endfor %} {% if inline.can_delete %}{% endif %} {% endfor %} {% for f in inline.new_row.fields %}{% endfor %} {% if inline.can_delete %}{% endif %}
{{ col }}Delete
{{ inline_cell(f) }}
{{ inline_cell(f) }}
{% if inline.truncated %}

Editing the first {{ inline.rows | length }} of {{ inline.total }}.

{% endif %} {% elif inline.rows %}
{% for col in inline.columns %}{% endfor %} {% for row in inline.rows %} {% for col, value in row.cells %} {% endfor %} {% endfor %}
{{ col }}
{% if value is none %}{% else %}{{ value }}{% endif %}{% if row.url %}View{% endif %}
{% if inline.truncated %}

Showing the first {{ inline.rows | length }} of {{ inline.total }}.

{% endif %} {% else %}

No related records.

{% endif %}
{% endfor %} {% if audit %}

Audit

created at
{% if audit.created_at %}{{ audit.created_at }}{% else %}{% endif %}
{% if audit.has_actors %}
created by
{% if audit.created_by %}{{ audit.created_by }}{% else %}{% endif %}
{% endif %}
updated at
{% if audit.updated_at %}{{ audit.updated_at }}{% else %}{% endif %}
{% if audit.has_actors %}
updated by
{% if audit.updated_by %}{{ audit.updated_by }}{% else %}{% endif %}
{% endif %}
{% endif %} {% if admin.audit_model is not none %}

History

{% if history %}
    {% for entry in history %}
  1. {{ entry.action }} {{ entry.at }}{% if entry.actor %} · {{ entry.actor }}{% endif %}
    {% if entry.changes %} {% for change in entry.changes %} {% endfor %}
    fieldbeforeafter
    {{ change.field }} {% if change.before is none %}{% else %}{{ change.before }}{% endif %} {% if change.after is none %}{% else %}{{ change.after }}{% endif %}
    {% endif %}
  2. {% endfor %}
{% else %}

No recorded changes for this record.

{% endif %} {% endif %}
{% endblock %}