From 48691227cb339d51ac6b3f0a6d9476506e329b88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 20 Oct 2026 16:34:12 +0200 Subject: [PATCH] chore: move menu entry to better suiting submenu --- src/Menu/TeamerMenuBuilder.php | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/Menu/TeamerMenuBuilder.php b/src/Menu/TeamerMenuBuilder.php index f683c0d..2fce917 100644 --- a/src/Menu/TeamerMenuBuilder.php +++ b/src/Menu/TeamerMenuBuilder.php @@ -54,22 +54,6 @@ class TeamerMenuBuilder extends AbstractMenuBuilder ], ]); - // Only for an all-season teamer who actually has an assignment this season: the page - // would have nothing to show otherwise, and it throws a 404 in exactly that case. - if (null !== $this->resolveSeasonAssignment()) { - $profileMenu->addChild('Saison-Teamer:in', [ - 'route' => 'app_teamer_season_index', - 'linkAttributes' => [ - 'title' => 'Saison-Teamer:in', - ], - 'extras' => [ - 'routes' => [ - ['pattern' => '/^app_teamer_season_/'], - ], - ], - ]); - } - // Season teamers only, and on the flag rather than on a current assignment: a month // still has to be reachable after the season it belongs to has ended. if (true === $this->isSeasonTeamer()) { @@ -110,6 +94,23 @@ class TeamerMenuBuilder extends AbstractMenuBuilder 'icon' => 'bus', ], ]); + + // Only for an all-season teamer who actually has an assignment this season: the page + // would have nothing to show otherwise, and it throws a 404 in exactly that case. + if (null !== $this->resolveSeasonAssignment()) { + $dispositionMenu->addChild('Saison-Einsatz', [ + 'route' => 'app_teamer_season_index', + 'linkAttributes' => [ + 'title' => 'Saison-Einsatz', + ], + 'extras' => [ + 'routes' => [ + ['pattern' => '/^app_teamer_season_/'], + ], + ], + ]); + } + $dispositionMenu->addChild('Merkliste', [ 'route' => 'app_teamer_bookmark_index', 'linkAttributes' => [