mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-09 17:52:14 +00:00
fix: formatting
This commit is contained in:
parent
ece2d12555
commit
4d060a62fd
1 changed files with 28 additions and 29 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue