Fix: show color; add bot [WIP]
This commit is contained in:
10
components/addbotbtn.html
Normal file
10
components/addbotbtn.html
Normal file
@ -0,0 +1,10 @@
|
||||
{{ define "addbot" }}
|
||||
<div>
|
||||
<button hx-get="/add-bot?team=blue&role=mime" hx-target="#addbot" class="bg-blue-400 text-black px-4 py-2 rounded">Add Bot Mime</button>
|
||||
<button hx-get="/add-bot?team=red&role=mime" hx-target="#addbot" class="bg-red-400 text-black px-4 py-2 rounded">Add Bot Mime</button>
|
||||
</div>
|
||||
<div>
|
||||
<button hx-get="/add-bot?team=blue&role=guesser" hx-target="#addbot" class="bg-blue-300 text-black px-4 py-2 rounded">Add Bot Guesser</button>
|
||||
<button hx-get="/add-bot?team=red&role=guesser" hx-target="#addbot" class="bg-red-300 text-black px-4 py-2 rounded">Add Bot Guesser</button>
|
||||
</div>
|
||||
{{end}}
|
@ -27,6 +27,12 @@
|
||||
{{if .Room.IsRunning}}
|
||||
{{template "cardcounter" .Room}}
|
||||
{{end}}
|
||||
|
||||
<div id="addbot">
|
||||
{{if and (eq .State.Username .Room.CreatorName) (not .Room.IsRunning)}}
|
||||
{{template "addbot" .}}
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="flex justify-center">
|
||||
<!-- Left Panel -->
|
||||
{{template "teamlist" .Room.BlueTeam}}
|
||||
|
Reference in New Issue
Block a user