diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index 65c338e..f529dd7 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -30,6 +30,8 @@ const ClubsPage = lazy(() => import('./pages/ClubsPage'))
const InboxPage = lazy(() => import('./pages/InboxPage'))
const SkillsPage = lazy(() => import('./pages/SkillsPage'))
const TrainingPlanningPage = lazy(() => import('./pages/TrainingPlanningPage'))
+const TrainingPlanTemplatesListPage = lazy(() => import('./pages/TrainingPlanTemplatesListPage'))
+const PlanningLayout = lazy(() => import('./layouts/PlanningLayout'))
const TrainingFrameworkProgramsListPage = lazy(() =>
import('./pages/TrainingFrameworkProgramsListPage'),
)
@@ -223,15 +225,22 @@ const appRouter = createBrowserRouter([
{ path: 'clubs', element: },
{ path: 'inbox', element: },
{ path: 'skills', element: },
+ {
+ path: 'planning',
+ element: ,
+ children: [
+ { index: true, element: },
+ { path: 'framework-programs', element: },
+ { path: 'training-modules', element: },
+ { path: 'plan-templates', element: },
+ ],
+ },
{ path: 'planning/framework-programs/new', element: },
{ path: 'planning/framework-programs/:id', element: },
- { path: 'planning/framework-programs', element: },
{ path: 'planning/training-modules/new', element: },
{ path: 'planning/training-modules/:id', element: },
- { path: 'planning/training-modules', element: },
{ path: 'planning/run/:unitId/coach', element: },
{ path: 'planning/run/:unitId', element: },
- { path: 'planning', element: },
{ path: 'admin', element: },
{
path: 'admin/users',
diff --git a/frontend/src/app.css b/frontend/src/app.css
index a3d4378..a43cfc8 100644
--- a/frontend/src/app.css
+++ b/frontend/src/app.css
@@ -1155,6 +1155,106 @@ a.analysis-split__nav-item {
min-width: 0;
}
+/* Planung: gemeinsame Chip-Navigation + Inhalt */
+.planning-layout__main {
+ min-width: 0;
+}
+.planning-route-nav {
+ margin-bottom: 1.25rem;
+}
+
+/* Formular-Aktionsleiste (sticky, schmal, touch-freundlich) */
+.form-action-bar {
+ flex-shrink: 0;
+ position: sticky;
+ bottom: 0;
+ z-index: 12;
+ background: var(--surface);
+ border-top: 1px solid var(--border);
+ padding: 8px clamp(10px, 2.5vw, 14px);
+ padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
+ box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
+}
+.form-action-bar--top {
+ border-top: none;
+ border-bottom: 1px solid var(--border);
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
+}
+.form-action-bar--modal {
+ margin-top: auto;
+}
+.form-action-bar__inner {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+ max-width: min(1100px, 100%);
+ margin: 0 auto;
+}
+.form-action-bar__spacer {
+ flex: 0 0 auto;
+ min-width: 0;
+}
+.form-action-bar__primary-group {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: flex-end;
+ gap: 8px;
+ margin-left: auto;
+}
+.form-action-bar__btn {
+ min-height: 44px;
+ padding: 8px 14px;
+ font-size: 0.88rem;
+ font-weight: 600;
+ white-space: nowrap;
+}
+.form-action-bar__btn--cancel {
+ min-width: 5.5rem;
+}
+
+.modal-panel--form {
+ display: flex;
+ flex-direction: column;
+ max-height: min(92vh, 100%);
+ overflow: hidden;
+ min-height: 0;
+}
+.modal-form-shell {
+ display: flex;
+ flex-direction: column;
+ flex: 1 1 auto;
+ min-height: 0;
+ overflow: hidden;
+}
+.modal-form-shell__body {
+ flex: 1 1 auto;
+ min-height: 0;
+ overflow-y: auto;
+ -webkit-overflow-scrolling: touch;
+ padding-bottom: 4px;
+}
+.page-form-shell {
+ display: flex;
+ flex-direction: column;
+ min-height: 0;
+}
+.page-form-shell__scroll {
+ flex: 1 1 auto;
+ min-height: 0;
+}
+.page-form-shell .form-action-bar {
+ position: sticky;
+ bottom: 0;
+ margin-top: 1rem;
+ margin-left: calc(-1 * var(--page-pad, 16px));
+ margin-right: calc(-1 * var(--page-pad, 16px));
+ padding-left: var(--page-pad, 16px);
+ padding-right: var(--page-pad, 16px);
+}
+
/* Einstellungen: gleiche Split-Struktur wie Analyse/Admin */
.settings-shell {
width: 100%;
diff --git a/frontend/src/components/FormActionBar.jsx b/frontend/src/components/FormActionBar.jsx
new file mode 100644
index 0000000..00614eb
--- /dev/null
+++ b/frontend/src/components/FormActionBar.jsx
@@ -0,0 +1,82 @@
+/**
+ * Feste Aktionsleiste für Formulare/Modale: Speichern, Speichern & schließen, Abbrechen.
+ * Bleibt sichtbar (sticky), während der Formularinhalt scrollt.
+ */
+export default function FormActionBar({
+ placement = 'bottom',
+ variant = 'default',
+ saving = false,
+ saveLabel,
+ saveAndCloseLabel = 'Speichern & schließen',
+ cancelLabel = 'Abbrechen',
+ onSave,
+ onSaveAndClose,
+ onCancel,
+ showSave = true,
+ showSaveAndClose = true,
+ showCancel = true,
+ formId,
+ isNew = false,
+ primaryIsSaveOnly = false,
+}) {
+ const labelSave = saveLabel ?? (isNew ? 'Anlegen' : 'Speichern')
+ const showSaveBtn = showSave && (Boolean(onSave) || Boolean(formId))
+ const showCloseBtn = showSaveAndClose && (Boolean(onSaveAndClose) || Boolean(formId))
+ const showCancelBtn = showCancel && Boolean(onCancel)
+
+ if (!showSaveBtn && !showCloseBtn && !showCancelBtn) return null
+
+ const saveBtnClass = `btn form-action-bar__btn${
+ primaryIsSaveOnly ? ' btn-primary' : ' btn-secondary'
+ }`
+ const closeBtnClass = `btn form-action-bar__btn${
+ primaryIsSaveOnly ? ' btn-secondary' : ' btn-primary'
+ }`
+
+ return (
+
+
+ {showCancelBtn ? (
+
+ {cancelLabel}
+
+ ) : (
+
+ )}
+
+ {showSaveBtn ? (
+
+ {saving ? 'Speichern…' : labelSave}
+
+ ) : null}
+ {showCloseBtn ? (
+
+ {saving ? 'Speichern…' : saveAndCloseLabel}
+
+ ) : null}
+
+
+
+ )
+}
diff --git a/frontend/src/components/planning/PlanningRouteNav.jsx b/frontend/src/components/planning/PlanningRouteNav.jsx
new file mode 100644
index 0000000..bf3c1da
--- /dev/null
+++ b/frontend/src/components/planning/PlanningRouteNav.jsx
@@ -0,0 +1,31 @@
+import { NavLink } from 'react-router-dom'
+
+const ITEMS = [
+ { to: '/planning', label: 'Trainingsplanung', end: true },
+ { to: '/planning/framework-programs', label: 'Rahmenprogramme' },
+ { to: '/planning/training-modules', label: 'Trainingsmodule' },
+ { to: '/planning/plan-templates', label: 'Vorlagen' },
+]
+
+/** Oberste Planungs-Navigation (Chip-Register). */
+export default function PlanningRouteNav() {
+ return (
+
+ {ITEMS.map((item) => (
+
+ 'admin-page-subtabs__btn' + (isActive ? ' admin-page-subtabs__btn--active' : '')
+ }
+ >
+ {item.label}
+
+ ))}
+
+ )
+}
diff --git a/frontend/src/components/planning/SaveExercisesAsModuleModal.jsx b/frontend/src/components/planning/SaveExercisesAsModuleModal.jsx
index ad00fd1..387ce47 100644
--- a/frontend/src/components/planning/SaveExercisesAsModuleModal.jsx
+++ b/frontend/src/components/planning/SaveExercisesAsModuleModal.jsx
@@ -1,5 +1,6 @@
import React, { useCallback, useEffect, useMemo, useState } from 'react'
import { useNavigate } from 'react-router-dom'
+import FormActionBar from '../FormActionBar'
import api from '../../utils/api'
import { useToast } from '../../context/ToastContext'
import { useAuth } from '../../context/AuthContext'
@@ -160,17 +161,16 @@ export default function SaveExercisesAsModuleModal({
}}
>
-
Übungen als Trainingsmodul
-
+
Übungen als Trainingsmodul
+
Es werden die gespeicherten Übungspositionen der Einheit vom{' '}
{unitLabel || '…'} verwendet. Speichere die Planung vorher, wenn du den aktuellen Stand
brauchst.
@@ -183,7 +183,8 @@ export default function SaveExercisesAsModuleModal({
) : candidates.length === 0 ? (
In dieser Einheit sind keine Übungen im Ablauf hinterlegt.
) : (
-