{% extends "admin/base_site.html" %} {% load i18n %} {% comment %} Task list page for django-taskly. Provides a status filter dropdown and a task-name search field. Both controls trigger an HTMX request to task_list_partial so only the table body is swapped, keeping the filter bar and pagination in place. Context variables ----------------- tasks Page — paginated TaskSnapshot page object status_filter str — currently active status filter value (may be empty) search_query str — currently active search query (may be empty) statuses list — TaskSnapshot.Status.choices list of (value, label) tuples {% endcomment %} {% block title %}{% trans "Task List" %} | {% trans "Django Taskly" %}{% endblock %} {% block extrahead %} {{ block.super }} {% endblock %} {% block content %}
← Dashboard

{% trans "Task Snapshots" %}

{# -------------------------------------------------------------------- #} {# Filter bar — form values drive HTMX requests #} {# -------------------------------------------------------------------- #}
{% if status_filter or search_query %} {% trans "Clear" %} {% endif %}
{# -------------------------------------------------------------------- #} {# Task table — tbody is the HTMX swap target #} {# -------------------------------------------------------------------- #} {% include "django_taskly/partials/task_table.html" %}
{% trans "Task Name" %} {% trans "Status" %} {% trans "Backend" %} {% trans "Duration" %} {% trans "Attempts" %} {% trans "Updated" %}
{# -------------------------------------------------------------------- #} {# Pagination #} {# -------------------------------------------------------------------- #} {% if tasks.has_other_pages %} {% endif %} {% endblock %}