diff --git a/frontend/src/routes/LunchPage.svelte b/frontend/src/routes/LunchPage.svelte index 40b1dc9..5493b1e 100644 --- a/frontend/src/routes/LunchPage.svelte +++ b/frontend/src/routes/LunchPage.svelte @@ -1,7 +1,18 @@ -

Lunch

+ {#if !kids.length} -

Add your children in Settings first.

+ + Open settings + {:else} -
- {#each kids as c (c.id)} - - {/each} -
- -
- - {monthLabel(month)} - -
- - {#if !hasMenu} -

No lunch menu is set up for {child?.display_name}. Add a source with the “Lunch menu” layout in Settings, then scan the menu.

- {:else if error} -

{error}

- {:else if days === null} -

Loading…

- {:else if !days.length} -

No published menu for {monthLabel(month)} yet. Scan it from the Scans tab.

- {:else} -
-

{child?.display_name}: tap the days to pack lunch. {picked} picked. Each pick goes on the calendar as “Pack lunch”.

- -
- - {/if} + + +
+ +

{monthLabel(month)}

+ +
+ + {#if !hasMenu} + +

Add a source with the “Lunch menu” layout for {child?.display_name} in Settings, then scan the menu.

+ Open settings +
+ {:else if error} + + {:else if days === null} +
+ {#each [1, 2, 3, 4, 5, 6] as _}
{/each} +
+ {:else if !days.length} + +

Scan and publish the menu from the Scans tab, then come back to pick days.

+ Scan a menu +
+ {:else} +
+
+

{picked} of {open.length} school days picked

+
+ +
+
+ +
+ + + {/if} + {/if}