Feat: join team

This commit is contained in:
Grail Finder
2025-05-08 12:31:44 +03:00
parent b20f7ac6b7
commit 21948b23f4
9 changed files with 112 additions and 22 deletions

View File

@ -1,8 +1,7 @@
{{define "teampew"}}
<!-- <div class="w-1/4 p-4 border-r"> -->
<div>
<h2 class="text-xl mb-4">Join {{.}} Team</h2>
<form hx-post="/join-team" hx-target="#room-content">
<form hx-post="/join-team" hx-target="#ancestor">
<input type="hidden" name="team" value="{{.}}">
<div class="mb-1">
<button type="submit" name="role" value="guesser" class="w-full bg-{{.}}-500 text-white py-2 px-4 rounded">