From ea958a8c2da34333e26f80068fe22cb9fbdd9544 Mon Sep 17 00:00:00 2001 From: WhyAsh5114 Date: Sat, 22 Jun 2024 22:48:16 +0530 Subject: [PATCH] copy of pages from exerciseSplit --- .../edit-split/exercises/+page.svelte | 5 + .../edit-split/structure/+page.svelte | 99 ++++++++++++++++++- 2 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 src/routes/mesocycles/[mesocycleId]/edit-split/exercises/+page.svelte diff --git a/src/routes/mesocycles/[mesocycleId]/edit-split/exercises/+page.svelte b/src/routes/mesocycles/[mesocycleId]/edit-split/exercises/+page.svelte new file mode 100644 index 00000000..56e548e2 --- /dev/null +++ b/src/routes/mesocycles/[mesocycleId]/edit-split/exercises/+page.svelte @@ -0,0 +1,5 @@ + + +

Exercises

diff --git a/src/routes/mesocycles/[mesocycleId]/edit-split/structure/+page.svelte b/src/routes/mesocycles/[mesocycleId]/edit-split/structure/+page.svelte index ef22cd5d..2ce03507 100644 --- a/src/routes/mesocycles/[mesocycleId]/edit-split/structure/+page.svelte +++ b/src/routes/mesocycles/[mesocycleId]/edit-split/structure/+page.svelte @@ -1,7 +1,104 @@

Structure

+
{ + e.preventDefault(); + submitStructure(); + }} +> + Exercise split structure + + + + + Name + Rest + + + + {#each mesocycleExerciseSplitRunes.splitDays as splitDay, dayNumber} + + {dayNumber + 1} + + + + + { + if (checked === 'indeterminate') return; + mesocycleExerciseSplitRunes.toggleSplitDay(dayNumber, checked); + }} + /> + + + {/each} + + +
+ +
+ + +
+ + + +

+ You'll lose exercise data from the following days: + + {dataLossDays.map((day) => `Day ${day + 1}`).join(', ')} + . Continue? +

+ +