fix: formatting

This commit is contained in:
EETagent 2023-01-26 21:17:42 +01:00
parent ece2d12555
commit 4d060a62fd

View file

@ -1,37 +1,36 @@
<script lang="ts"> <script lang="ts">
import LL from '$i18n/i18n-svelte'; import LL from '$i18n/i18n-svelte';
import type { School } from '$lib/stores/candidate'; import type { School } from '$lib/stores/candidate';
// TODO // TODO
// import AutoComplete from 'simple-svelte-autocomplete'; // import AutoComplete from 'simple-svelte-autocomplete';
import { onMount } from 'svelte'; import { onMount } from 'svelte';
// import schoollistString from '$lib/assets/schoollist.txt'; // import schoollistString from '$lib/assets/schoollist.txt';
let schools: string[] = []; let schools: string[] = [];
onMount(async () => { onMount(async () => {
schools = await fetch('/schoollist.txt') schools = await fetch('/schoollist.txt')
.then((response) => response.text()) .then((response) => response.text())
.then((text) => text.split(';')); .then((text) => text.split(';'));
}); });
export let selectedSchool: School;
export let schoolName: string = selectedSchool.name;
$: selectedSchool.name = schoolName;
export let selectedSchool: School;
export let schoolName: string = selectedSchool.name;
$: selectedSchool.name = schoolName;
</script> </script>
<div class="flex flex-row"> <div class="flex flex-row">
<div> <div>
<span> <span>
{$LL.input.selectedSchool()}: {selectedSchool.name} {$LL.input.selectedSchool()}: {selectedSchool.name}
</span> </span>
<!-- TODO --> <!-- TODO -->
<!-- <AutoComplete items={schools} bind:selectedItem={schoolName} /> --> <!-- <AutoComplete items={schools} bind:selectedItem={schoolName} /> -->
<input type="text" bind:value={schoolName} /> <input type="text" bind:value={schoolName} />
</div> </div>
<div class="flex"> <div class="flex">
<span>{$LL.input.fieldOfStudy()}: </span> <span>{$LL.input.fieldOfStudy()}: </span>
<input type="text" bind:value={selectedSchool.field} /> <input type="text" bind:value={selectedSchool.field} />
</div> </div>
</div> </div>