{% 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 view_on_site_url %} {{ deck_icon("external-link", 13) }} View on Site {% endif %} {% 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) %} {% set delete_demo_locked = demo_safe_mode and (is_soft_deleted or not view.soft_delete_column) %}
{% if is_soft_deleted %}{% endif %}
{% endif %}
{{ render_slot('detail_above') }}

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 %} {% if it.href %} {{ it.label }} {% else %} {{ it.label }} {% endif %} {% endfor %}
{% else %} None {% endif %}
{% else %}
No relationships defined.
{% endfor %}
{% for sub in subtables %}

{{ sub.label }}

{{ sub.total_count }} linked {{ sub.target_view.plural_label | lower }}

{% if sub.rows %}
{% for c in sub.cols %}{% endfor %} {% for row in sub.rows %} {% for cell in row.cells %}{% endfor %} {% endfor %}
{{ sub.target_view.get_column_label(c) }}Link
{{ cell }}Open
{% else %}
No {{ sub.target_view.plural_label | lower }} linked yet.
{% endif %}
{% endfor %}

Operational Notes

{{ record_notes | length }} note(s)
{% if can_write_notes %}
{% endif %} {% for note in record_notes %}
{% if note.pinned %}PINNED{% endif %} {{ note.author_name }} {{ format_dt(note.created_at, '%Y-%m-%d %H:%M') }}
{{ render_note_md(note.body) }}
{% if can_write_notes %}
{% if is_superuser or note.author_id == current_user_id %}
{% endif %}
{% endif %}
{% else %}
No operational notes attached to this record.
{% 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 %}
{{ render_slot('detail_below') }}
{% endblock %} {% block extra_scripts %} {% endblock %}