chore: move menu entry to better suiting submenu

This commit is contained in:
fromme committed 2026-10-20 16:34:12 +02:00
1 parent 34ff630b75
commit 48691227cb
1 file changed
+17 -16
+17 -16
View File
@@ -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' => [