- {#each [['system', 'Match this device'], ['light', 'Light'], ['dark', 'Dark']] as [value, label]}
-
- {/each}
+{#snippet nameAndColor(value: { name?: string; display_name?: string; color: string }, key: 'name' | 'display_name', label: string, placeholder: string)}
+
-
+{/snippet}
-
- Time zone
- Events are exported in {h.timezone}.
- {#if deviceZone && deviceZone !== h.timezone}
-
- {/if}
-
-
-
Children
-
- {#each h.children as c (c.id)}
- -
- {#if editing?.kind === 'child' && editing.id === c.id}
-
- {:else}
-
- {/if}
-
- {/each}
-
-{#if editing?.kind === 'child' && editing.id === null}
-
-{:else}
-
-{/if}
-
-
Calendars
-
A calendar is what you download or subscribe to: one per child, or one for the whole family.
-
- {#each h.calendars as c (c.id)}
- -
- {#if editing?.kind === 'calendar' && editing.id === c.id}
- {@render calendarForm()}
- {:else}
-
- {/if}
-
- {/each}
-
-{#if editing?.kind === 'calendar' && editing.id === null}
-
{@render calendarForm()}
-{:else}
-
-{/if}
+{/snippet}
{#snippet calendarForm()}
-