diff --git a/app/src/pages/plans/plan-editor/PlanMetaForm.tsx b/app/src/pages/plans/plan-editor/PlanMetaForm.tsx index 79874d0..43a2cf2 100644 --- a/app/src/pages/plans/plan-editor/PlanMetaForm.tsx +++ b/app/src/pages/plans/plan-editor/PlanMetaForm.tsx @@ -24,40 +24,51 @@ export function PlanMetaForm({ startWeekError?: string; showStartWeek: boolean; }) { + const titleField = ( + + onTitleChange(e.target.value)} + onBlur={onTitleBlur} + placeholder="np. Plan masowy 8-tygodniowy" + aria-invalid={titleError ? true : undefined} + /> + {titleError && {titleError}} + + ); + const weeksField = ( + + + + ); + return ( - {/* desktop: tytuł + długość + tydzień startu obok siebie; mobile: jedno pod drugim */} -
- - onTitleChange(e.target.value)} - onBlur={onTitleBlur} - placeholder="np. Plan masowy 8-tygodniowy" - aria-invalid={titleError ? true : undefined} - /> - {titleError && {titleError}} - - - - - {showStartWeek && ( + {/* desktop: równe kolumny — po lewej kalendarz startu, po prawej inputy pod siebie; + mobile (i tryb edycji bez startu): jedno pod drugim / dwa obok siebie */} + {showStartWeek ? ( +
{startWeekError && {startWeekError}} - )} -
+
+ {titleField} + {weeksField} +
+
+ ) : ( +
+ {titleField} + {weeksField} +
+ )} {showStartWeek && (

Opcjonalnie zaznacz tydzień startu — plan zostanie od razu aktywowany (start =