From 78d0758879fcc194a8d1160bb32e6c0b50677509 Mon Sep 17 00:00:00 2001 From: Steve Crow Date: Sun, 29 Dec 2024 20:46:59 -0500 Subject: [PATCH] Testing rendering restrictions --- src/lib/RestrictionRow.svelte | 11 +++++ src/routes/restrictions/+page.svelte | 62 ++++++++++++++++------------ 2 files changed, 47 insertions(+), 26 deletions(-) create mode 100644 src/lib/RestrictionRow.svelte diff --git a/src/lib/RestrictionRow.svelte b/src/lib/RestrictionRow.svelte new file mode 100644 index 0000000..233faf1 --- /dev/null +++ b/src/lib/RestrictionRow.svelte @@ -0,0 +1,11 @@ + + +
+
{restriction.route}
+
{restriction.from}
+
{restriction.to}
+
{restriction.restriction}
+
{restriction.notes}
+
\ No newline at end of file diff --git a/src/routes/restrictions/+page.svelte b/src/routes/restrictions/+page.svelte index ec674be..561c89d 100644 --- a/src/routes/restrictions/+page.svelte +++ b/src/routes/restrictions/+page.svelte @@ -1,34 +1,44 @@ - ICCT - Restrictions -
- - - - - - - - - - - - - {#each data.restrictions as restriction} - - - - - - - - - {/each} - -
AirportRouteFromToRestrictionNotes
{restriction.airport}{restriction.route}{restriction.from}{restriction.to}{restriction.restriction}{restriction.notes}
+
+ {#each restrictions as [airport, r]} +
+
{airport}
+
+
+
Route
+
From
+
To
+
Restriction
+
Notes
+
+ {#each r as restriction} + + {/each} +
+
+ {/each}
\ No newline at end of file