diff --git a/party/static/party/party.css b/party/static/party/party.css index c6d1142..1e1fa8d 100644 --- a/party/static/party/party.css +++ b/party/static/party/party.css @@ -900,6 +900,7 @@ button, input { font-family: inherit; } /* ---------- nyt spil: vælg spørgsmålspakke ---------- */ .new-game { display: flex; flex-direction: column; align-items: center; gap: 20px; } +.new-game .games { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; } .packs { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; flex-wrap: wrap; justify-content: center; } .packs legend { width: 100%; margin-bottom: 8px; color: var(--muted); font-weight: 600; } .packs label { cursor: pointer; } diff --git a/party/templates/party/host_new.html b/party/templates/party/host_new.html index d402cc7..a528660 100644 --- a/party/templates/party/host_new.html +++ b/party/templates/party/host_new.html @@ -5,13 +5,8 @@
Logget ind som {{ username }}
{% endif %} diff --git a/party/tests/test_tegn.py b/party/tests/test_tegn.py index d18117d..10607b1 100644 --- a/party/tests/test_tegn.py +++ b/party/tests/test_tegn.py @@ -203,3 +203,12 @@ class TegnViewTests(TestCase): self.assertIsInstance(rooms.get_room(code), TegnRoom) page = self.client.get("/host/", headers={"x-authentik-username": "agw"}, REMOTE_ADDR="127.0.0.1") self.assertContains(page, 'value="tegn"') + + def test_each_game_is_its_own_submit_button(self): + """Fejlen: spillet var en radio med Fup og Fakta afkrydset. En TV-fjernbetjening flytter fokus uden at + afkrydse, og Enter/OK på den fokuserede "Tegn og Gæt" sendte formularen med game=fof.""" + page = self.client.get("/host/", headers={"x-authentik-username": "agw"}, REMOTE_ADDR="127.0.0.1") + html = page.content.decode() + self.assertNotRegex(html, r']*name="game"') + for key in ("fof", "tegn"): + self.assertRegex(html, rf'