diff --git a/backend_splatournament_manager/dist/csv/tournaments.csv b/backend_splatournament_manager/dist/csv/tournaments.csv
index c3a8513..c68122c 100644
--- a/backend_splatournament_manager/dist/csv/tournaments.csv
+++ b/backend_splatournament_manager/dist/csv/tournaments.csv
@@ -1,4 +1,4 @@
name,description,maxTeamAmount,currentTeamAmount,registrationStartDate,registrationEndDate
-Demo Tournament ,This is a demo tournament, 6, 0, 2026-02-01, 2026-02-28
-Demo Tournament 2,This is a second demo tournament, 12, 5, 2026-03-01, 2026-03-15
-Demo Tournament 3,This is a third demo tournament, 8, 8, 2026-03-10, 2026-03-20
+Demo Tournament ,This is a demo tournament, 2, 0, 2026-02-01, 2026-02-28
+Demo Tournament 2,This is a second demo tournament, 4, 5, 2026-03-01, 2026-03-15
+Demo Tournament 3,This is a third demo tournament, 8, 8, 2026-03-15, 2026-03-20
diff --git a/backend_splatournament_manager/dist/csv/users.csv b/backend_splatournament_manager/dist/csv/users.csv
index 74a44b5..f6c0ddb 100644
--- a/backend_splatournament_manager/dist/csv/users.csv
+++ b/backend_splatournament_manager/dist/csv/users.csv
@@ -1,2 +1,6 @@
username, password
-tikaiz, htlgkr
\ No newline at end of file
+tikaiz, htlgkr
+test01, htlgkr
+test02, htlgkr
+test03, htlgkr
+test04, htlgkr
\ No newline at end of file
diff --git a/docs/prompt.md b/docs/prompt.md
index 1381254..fb83464 100644
--- a/docs/prompt.md
+++ b/docs/prompt.md
@@ -91,3 +91,7 @@ Folgende Dateien wurden in diesem Prompt verändert:
- In the Teams view, fix the upper TabBar text so selected and non-selected labels are readable.
Folgende Dateien wurden in diesem Prompt verändert:
- frontend_splatournament_manager/lib/pages/home_page.dart
+
+- Only allow entering a tournament if the registration period is open currently.
+Folgende Dateien wurden in diesem Prompt verändert:
+ - frontend_splatournament_manager/lib/pages/tournament_detail_page.dart
diff --git a/frontend_splatournament_manager/lib/pages/tournament_detail_page.dart b/frontend_splatournament_manager/lib/pages/tournament_detail_page.dart
index d5f9f86..d65984a 100644
--- a/frontend_splatournament_manager/lib/pages/tournament_detail_page.dart
+++ b/frontend_splatournament_manager/lib/pages/tournament_detail_page.dart
@@ -155,10 +155,16 @@ class _TournamentDetailPageState extends State {
child: Padding(
padding: const EdgeInsets.fromLTRB(12, 0, 12, 24),
child: ElevatedButton(
- child: Text("Join with Team"),
- onPressed: () {
- _showJoinTeamDialog(context, widget.tournament.id);
- },
+ onPressed: widget.tournament.isRegistrationOpen
+ ? () => _showJoinTeamDialog(context, widget.tournament.id)
+ : null,
+ child: Text(
+ widget.tournament.isRegistrationFuture
+ ? "Registration not open yet"
+ : widget.tournament.isRegistrationPast
+ ? "Registration closed"
+ : "Join with Team",
+ ),
),
),
),