This commit is contained in:
2025-05-04 10:59:39 +02:00
parent d386653a64
commit 5f8bb1514b
5 changed files with 180 additions and 78 deletions

View File

@@ -22,9 +22,13 @@ templ weekDayComponent(user models.User, day models.WorkDay) {
<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>
if day.TimeFrom == day.TimeTo {
<p>Keine Anwesenheit</p>
} else {
<span>{ day.TimeFrom.Format("15:04") }</span>
<span>-</span>
<span>{ day.TimeTo.Format("15:04") }</span>
}
</div>
</div>
</div>