{# core/modules/scheduler/templates/partials/list.html Nur der Listen-Container (ohne page-header). Wird per hx-swap="outerHTML" auf #{{ container_id }} gesetzt. Variablen: jobs – list[dict] actions – dict[key, label] key – "scheduler" container_id – z.B. "tab-scheduler" loading_id – z.B. "scheduler-loading" #} {% import 'partials/components/card.html' as card %}
{% if jobs %} {% for job in jobs %} {% set title_html %} {{ job.label }} {% endset %} {% set toggle_html %} {% endset %} {% set footer_left %}
{% endset %} {% set footer_right %} {% endset %} {% call card.render(title_html, enabled=job.enabled, toggle_html=toggle_html, footer_left=footer_left, footer_right=footer_right) %}
Cron {{ job.cron }} Nächster Lauf {{ job.next_run or '—' }} Letzter Lauf {{ job.last_run or '—' }} {% if job.last_duration %} ({{ job.last_duration }}){% endif %} {% if job.last_status %} Status {{ job.last_status[:30] }}{% if job.last_status|length > 30 %}…{% endif %} {% endif %}
{% if job.steps %}
{% for step in job.steps %} {{ loop.index }}. {{ actions.get(step, step) }} {% endfor %}
{% else %}
Keine Schritte konfiguriert.
{% endif %} {% endcall %} {% endfor %} {% else %}
Keine Jobs konfiguriert
Erstelle einen Scheduler-Job über „Neu". {% if not actions %}
Hinweis: Noch keine Aktionen registriert. {% endif %}
{% endif %}