{% extends "flask_deck/base.html" %} {% block breadcrumbs %} / {{ view.plural_label }} / {{ record_repr }} {% endblock %} {% block content %}

{{ record_repr }}

{{ view.meta.name }} · PK {{ pk_str }}

{{ deck_icon("arrow-left", 13) }} List {% if can_view_audit %} {{ deck_icon("git-compare", 13) }} {{ _("History") }} {% endif %} {% if can_create %} {{ deck_icon("copy", 13) }} {{ _("Clone") }} {% endif %} {% if is_soft_deleted and can_edit %}
{% elif can_edit %} {{ deck_icon("edit", 13) }} {{ _("Edit") }} {% endif %} {% if (can_force_delete if is_soft_deleted else can_delete) %}
{% if is_soft_deleted %}{% endif %}
{% endif %}

Attributes

{{ fields_display | length }} fields
{% for f in fields_display %}
{{ f.label }}
{{ f.formatted }}
{% endfor %}

Relationships

{% for rel in relations_display %}
{% if rel.records %}
{% for it in rel.records %}{{ it }}{% endfor %}
{% else %} None {% endif %}
{% else %}
No relationships defined.
{% endfor %}
{% if can_view_audit %}

Record Audit History

{{ history | length }} event(s)
{% for entry in history %}
{{ entry.action }} {{ entry.actor_name }} ({{ entry.actor_ip }})
{% if entry.changes %}
{% for fname, delta in entry.changes.items() %}
{{ fname }}: {% if delta.old is not none %}{{ delta.old }}{% endif %} → {{ delta.new }}
{% endfor %}
{% endif %}
{{ format_dt(entry.timestamp, '%Y-%m-%d %H:%M:%S') }}
{% else %}
No audit history for this record.
{% endfor %}
{% endif %}
{% endblock %}