{% extends "base.html" %} {% block title %}Dokumentvorlagen{% endblock %} {% block content %}

Dokumentvorlagen

Vorlagen und Dokumente verwalten

{# ─ Vorlagen ──────────────────────────────────────────────── #}

Vorlagen ({{ templates|length }})

{% if templates %}
{% for tmpl in templates %} {% endfor %}
Name Abschnitte Felder Status Quelle Aktualisiert
{{ tmpl.name|truncatechars:50 }} {% if tmpl.scope %} {{ tmpl.scope }} {% endif %} {{ tmpl.section_count }} {{ tmpl.field_count }} {{ tmpl.get_status_display }} {% if tmpl.source_filename %}{{ tmpl.source_filename|truncatechars:20 }}{% else %}Manuell{% endif %} {{ tmpl.updated_at|date:"d.m.Y H:i" }} Dokument erstellen Bearbeiten
{% csrf_token %}
{% else %}

Noch keine Vorlagen vorhanden.

Laden Sie ein PDF hoch oder erstellen Sie eine leere Vorlage.

{% endif %}
{# ─ Dokumente ─────────────────────────────────────────────── #} {% if instances %}

Dokumente ({{ instances|length }})

{% for inst in instances %} {% endfor %}
Dokument Vorlage Status Aktualisiert
{{ inst.name|truncatechars:50 }} {{ inst.template.name|truncatechars:30 }} {{ inst.get_status_display }} {{ inst.updated_at|date:"d.m.Y H:i" }} Bearbeiten
{% csrf_token %}
{% endif %}
{% endblock %}