{% extends "base.html" %} {% import "components/macros.html" as ui %} {% block title %}Tasks Dashboard - Stick{% endblock %} {% block content %}

Your Tasks

Add and manage your workflow tasks

Total Tasks: {{ tasks.len() }} {{ ui::modal_trigger(target_id="task-info-modal", label="", variant="outline", extra_class="w-9 h-9 !p-0 flex items-center justify-center") }}

New Task

{{ ui::text_input(id="title", name="title", label="Title", type="text", placeholder="Task name", required=true) }} {{ ui::textarea(id="description", name="description", label="Description (Optional)", placeholder="Add some context...") }} {{ ui::search_combobox(name="assignee_id", label="Assignee (Optional)", placeholder="Search developer...", search_url="/developers/search", input_id="assignee-search", value_id="assignee-id") }} {{ ui::button(label="Create Task", variant="indigo", type="submit", extra_class="w-full py-3 transition shadow-md shadow-indigo-500/10") }}
{% if tasks.is_empty() %}

No tasks yet

Your task board is clean. Use the form on the left to add your first task.

{% else %} {% for item in tasks %}
{% if item.task.is_completed %}
{% else %}
{% endif %}

{{ item.task.title }}

{% if let Some(desc) = item.task.description %} {% if !desc.is_empty() %}

{{ desc }}

{% endif %} {% endif %}
Created {{ item.task.created_at.format("%Y-%m-%d %H:%M") }} {% if let Some(dev_name) = item.developer_name %} Assigned to: {{ dev_name }} {% endif %}
{% if !item.task.is_completed %}
{% endif %}
{% endfor %} {% endif %}
{{ ui::modal(id="task-info-modal", title="Tasks Guide", content="Welcome to the task board! You can add new tasks, assign them to registered developers, mark them complete, or delete them. This board is dynamic and updates automatically.", close_label="Got it") }} {% endblock %}