added Team Presence Page

This commit is contained in:
2025-04-10 09:16:37 +02:00
parent 71e65e9b17
commit 65ea9c63e9
10 changed files with 236 additions and 3 deletions

View File

@@ -56,3 +56,14 @@ templ employeComponent(week models.WorkWeek) {
</form>
</div>
}
templ userPresenceComponent(user models.User, present bool){
<div class="grid-cell group flex flex-row gap-2">
if present {
<div class="h-8 bg-accent rounded-md group-hover:text-black md:text-transparent text-center p-1" >Anwesend</div>
} else {
<div class="h-8 bg-red-600 rounded-md group-hover:text-white md:text-transparent text-center p-1" >Abwesend</div>
}
<p>{user.Vorname} {user.Name}</p>
</div>
}