added from and to times to team view fixes #4, #5

This commit is contained in:
2025-03-27 12:21:58 +01:00
parent d9e0bd7bdf
commit b43783356f
7 changed files with 263 additions and 91 deletions

View File

@@ -17,6 +17,15 @@ templ weekDayComponent(user models.User, day models.WorkDay) {
<span class="text-accent">{ work }</span>
<span class="text-neutral-500">{ pause }</span>
</div>
<div class="flex flex-row gap-2 items-center">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="size-4" viewBox="0 0 16 16">
<path d="M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71z"></path>
<path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0"></path>
</svg>
<span>{ day.TimeFrom.Format("15:04") }</span>
<span>-</span>
<span>{ day.TimeTo.Format("15:04") }</span>
</div>
</div>
</div>
}