{# core/ui/templates/partials/log_modal.html Log-Modal mit Live-Streaming (SSE) und statischem Datum-Wähler. Standard-URL-Konventionen: Statisch: GET /api/{module}/{item_id}/logs Nach Datum: GET /api/{module}/{item_id}/logs/{date} SSE-Stream: GET /api/{module}/{item_id}/logs/stream Variablen: module – Modulname item_id – Item-ID description – Anzeigename (für Titel) live – bool: SSE-Live-Modus lines – list[str]: Log-Zeilen (statischer Modus) dates – list[str]: verfügbare Datum-Dateien selected – str: aktuell gewähltes Datum #} {% extends "dialog_core.html" %} {% from "partials/components/ui_macros.html" import form_select %} {% block dialog_id %}log-modal{% endblock %} {% block dialog_width %}1000{% endblock %} {% block dialog_title %}Log – {{ description }}{% endblock %} {% block dialog_header_extra %} {% if dates %} {% call form_select('', attrs='style="width:auto;min-width:180px;" id="log-date-select"') %} {% for run in dates %} {% set val = run.id if run is mapping else run %} {% set lbl = run.label if run is mapping else run %} {% endfor %} {% endcall %} {% endif %} {% endblock %} {% block dialog_body %} {% if live %}
Live Wird aktualisiert…
{% include "partials/dialogs/log_content.html" %}
{% else %}
{% include "partials/dialogs/log_content.html" %}
{% if not dates and not lines %}
Noch keine Logs vorhanden – erscheinen nach dem ersten Ausführen.
{% endif %} {% endif %} {% endblock %} {% block dialog_scripts %} {% if live %} {% elif dates %} {% endif %} {% endblock %}