feat: polish mobile ui and admin quick task settings

This commit is contained in:
2026-04-13 10:52:14 +02:00
parent 42d4f8ec8e
commit 7b53f66406
10 changed files with 559 additions and 74 deletions

View File

@@ -193,6 +193,11 @@ def calendar_view():
for task in tasks:
tasks_by_day[task.due_date.day].append(task)
mobile_day_groups = [
{"day": day, "tasks": grouped_tasks}
for day, grouped_tasks in sorted(tasks_by_day.items(), key=lambda item: item[0])
]
month_calendar = calendar.Calendar(firstweekday=0).monthdayscalendar(year, month)
return render_template(
"tasks/calendar.html",
@@ -201,6 +206,7 @@ def calendar_view():
current_label=month_label(year, month),
month_calendar=month_calendar,
tasks_by_day=tasks_by_day,
mobile_day_groups=mobile_day_groups,
view=view,
tasks=tasks,
)