From 5c1827c8b89f3493a26b7b6f0d95149e705bbe97 Mon Sep 17 00:00:00 2001 From: Asger Geel Weirsoee Date: Sat, 28 Feb 2026 00:56:31 +0100 Subject: [PATCH] =?UTF-8?q?UI:=20l=C3=A5s=20l=C3=B8gn-input=20efter=20subm?= =?UTF-8?q?it=20med=20tydelig=20status=20(#53)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lobby/templates/lobby/player_screen.html | 18 ++++++++++++++---- lobby/tests.py | 4 ++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/lobby/templates/lobby/player_screen.html b/lobby/templates/lobby/player_screen.html index 8f6d9a6..79f31f5 100644 --- a/lobby/templates/lobby/player_screen.html +++ b/lobby/templates/lobby/player_screen.html @@ -5,6 +5,8 @@ #answerOptions button { border: 1px solid #999; padding: 6px 10px; border-radius: 8px; background: #f4f4f4; cursor: pointer; } #answerOptions button.active { border-color: #1652f0; background: #dfe9ff; } #guessStatus { margin: 6px 0 10px; font-size: 0.95rem; color: #333; } +#lieStatus { margin: 6px 0 10px; font-size: 0.95rem; color: #333; } +#lieStatus.locked { color: #0a5f2d; font-weight: 600; } #guessStatus.locked { color: #0a5f2d; font-weight: 600; } @@ -17,7 +19,8 @@ - + +

Skriv din løgn.

Vælg et svar.

@@ -27,20 +30,27 @@ diff --git a/lobby/tests.py b/lobby/tests.py index 283c401..c55d186 100644 --- a/lobby/tests.py +++ b/lobby/tests.py @@ -785,6 +785,10 @@ class UiScreenTests(TestCase): self.assertContains(response, "availableAnswers") self.assertContains(response, "guessStorageKey") self.assertContains(response, "persistGuessState") + self.assertContains(response, "id=\"lieSubmitBtn\"") + self.assertContains(response, "id=\"lieStatus\"") + self.assertContains(response, "persistLieState") + self.assertContains(response, "updateLieSubmitState") self.assertContains(response, "invalid_client_guess") -- 2.39.5