From 60323b9be5bb294067a6dd4db78365fcc6533b98 Mon Sep 17 00:00:00 2001 From: EETagent Date: Thu, 26 Jan 2023 22:20:13 +0100 Subject: [PATCH] feat: init school select component --- .../{static => src/lib/assets}/schoollist.txt | 0 .../lib/components/select/SchoolSelect.svelte | 36 ----- .../select/SchoolSelect/School.svelte | 41 ++++++ .../select/SchoolSelect/SchoolSelect.svelte | 136 ++++++++++++++++++ 4 files changed, 177 insertions(+), 36 deletions(-) rename frontend/{static => src/lib/assets}/schoollist.txt (100%) delete mode 100644 frontend/src/lib/components/select/SchoolSelect.svelte create mode 100644 frontend/src/lib/components/select/SchoolSelect/School.svelte create mode 100644 frontend/src/lib/components/select/SchoolSelect/SchoolSelect.svelte diff --git a/frontend/static/schoollist.txt b/frontend/src/lib/assets/schoollist.txt similarity index 100% rename from frontend/static/schoollist.txt rename to frontend/src/lib/assets/schoollist.txt diff --git a/frontend/src/lib/components/select/SchoolSelect.svelte b/frontend/src/lib/components/select/SchoolSelect.svelte deleted file mode 100644 index 93b31a7..0000000 --- a/frontend/src/lib/components/select/SchoolSelect.svelte +++ /dev/null @@ -1,36 +0,0 @@ - - -
-
- - {$LL.input.selectedSchool()}: {selectedSchool.name} - - - - -
-
- {$LL.input.fieldOfStudy()}: - -
-
diff --git a/frontend/src/lib/components/select/SchoolSelect/School.svelte b/frontend/src/lib/components/select/SchoolSelect/School.svelte new file mode 100644 index 0000000..2153e34 --- /dev/null +++ b/frontend/src/lib/components/select/SchoolSelect/School.svelte @@ -0,0 +1,41 @@ + + +
  • + {@html itemLabel} +
  • + + diff --git a/frontend/src/lib/components/select/SchoolSelect/SchoolSelect.svelte b/frontend/src/lib/components/select/SchoolSelect/SchoolSelect.svelte new file mode 100644 index 0000000..374a244 --- /dev/null +++ b/frontend/src/lib/components/select/SchoolSelect/SchoolSelect.svelte @@ -0,0 +1,136 @@ + + + + +
    +
    + + +
    + {#if filteredSchools.length > 0} +
      + {#each filteredSchools as country, i} + setInputVal(country)} + /> + {/each} +
    + {/if} +
    + +