diff --git a/.changeset/tasks-list-page.md b/.changeset/tasks-list-page.md new file mode 100644 index 000000000..80b4c6147 --- /dev/null +++ b/.changeset/tasks-list-page.md @@ -0,0 +1,6 @@ +--- +"@tabler/preview": minor +--- + +Added new Task List page with tables showing tasks organized by status (Upcoming, In Progress, Completed) and modal dialog for adding new tasks. + diff --git a/preview/pages/modals.html b/preview/pages/modals.html index cc9cfa636..9f5693a1a 100644 --- a/preview/pages/modals.html +++ b/preview/pages/modals.html @@ -96,6 +96,10 @@ page-libs: [signature_pad, hugerte, litepicker]
| + + | +Name | +Assigned To | +Due Date | +Priority | +Actions | +
|---|---|---|---|---|---|
| + + | ++ {{ task.name }} + | +
+ {% if task.assigned_to and person %}
+
+ {% include "ui/avatar.html" person-id=task.assigned_to size="xs" class="me-2" %}
+ {{ person.full_name }}
+
+ {% else %}
+ Unassigned
+ {% endif %}
+ |
+ + {% if task.due_date %} + {% include "ui/icon.html" icon="calendar" class="me-1" %} + {{ task.due_date }} + {% elsif task.due-date %} + {% include "ui/icon.html" icon="calendar" class="me-1" %} + {{ task.due-date }} + {% else %} + — + {% endif %} + | ++ {% if task.priority == "High" %} + {% include "ui/badge.html" text="High" color="red" light %} + {% elsif task.priority == "Medium" %} + {% include "ui/badge.html" text="Medium" color="yellow" light %} + {% elsif task.priority == "Low" %} + {% include "ui/badge.html" text="Low" color="blue" light %} + {% else %} + {% include "ui/badge.html" text="—" light %} + {% endif %} + | ++ {% include "ui/button.html" text="View" size="sm" %} + | +