|
|
@@ -1,5 +1,16 @@
|
|
|
<script lang="ts">
|
|
|
+ import type { AppointmentInputs } from "$lib/dbdata";
|
|
|
+ import CreatorBaseInputs from "$lib/modules/CreatorBaseInputs.svelte";
|
|
|
+ import CreatorInputs from "$lib/modules/CreatorInputs.svelte";
|
|
|
+ import CreatorTimeInputs from "$lib/modules/CreatorTimeInputs.svelte";
|
|
|
|
|
|
+ let creatorInputs: AppointmentInputs[] = [{ name: '', type: 'text' }];
|
|
|
+ let topic: string;
|
|
|
+ let location: string;
|
|
|
+ let selectedWeek: number = 202502;
|
|
|
+ let duration: number = 15;
|
|
|
+
|
|
|
+ $: console.log(creatorInputs);
|
|
|
|
|
|
</script>
|
|
|
|
|
|
@@ -13,123 +24,12 @@
|
|
|
<h3 class="center-align top-padding bottom-padding">Termine</h3>
|
|
|
|
|
|
<fieldset>
|
|
|
- <div class="field border">
|
|
|
- <input id="topic" placeholder="Thema">
|
|
|
- <label for="topic">Thema</label>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="field border">
|
|
|
- <input id="location" placeholder="Ort">
|
|
|
- <label for="location">Ort</label>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="field label border">
|
|
|
- <select id="week">
|
|
|
- <option>01 KW (01.01.2024 - 05.01.2024)</option>
|
|
|
- <option>02 KW (06.01.2024 - 12.01.2024)</option>
|
|
|
- <option>03 KW (13.01.2024 - 19.01.2024)</option>
|
|
|
- <option>04 KW (20.01.2024 - 26.01.2024)</option>
|
|
|
- </select>
|
|
|
- <label for="week">Woche</label>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="field border label">
|
|
|
- <select id="duration">
|
|
|
- <option>15 Minuten</option>
|
|
|
- <option>20 Minuten</option>
|
|
|
- <option>30 Minuten</option>
|
|
|
- <option>45 Minuten</option>
|
|
|
- <option>1 Stunde</option>
|
|
|
- </select>
|
|
|
- <label for="duration">Dauer</label>
|
|
|
- </div>
|
|
|
+ <CreatorBaseInputs bind:topic bind:location bind:selectedWeek bind:duration />
|
|
|
|
|
|
- <fieldset>
|
|
|
- <legend>Select one or more</legend>
|
|
|
- <nav class="vertical">
|
|
|
- <label class="checkbox">
|
|
|
- <input type="checkbox">
|
|
|
- <span>Montag</span>
|
|
|
- </label>
|
|
|
- <label class="checkbox">
|
|
|
- <input type="checkbox">
|
|
|
- <span>Dienstag</span>
|
|
|
- </label>
|
|
|
-
|
|
|
- <label class="checkbox" id="checkbox">
|
|
|
- <input type="checkbox">
|
|
|
- <span>Mittwoch</span>
|
|
|
- </label>
|
|
|
-
|
|
|
- <div class="">
|
|
|
- <button class="transparent circle large">
|
|
|
- <i>content_copy</i>
|
|
|
- </button>
|
|
|
- <button class="transparent circle large">
|
|
|
- <i>add</i>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div class="field border row">
|
|
|
- <input type="time">
|
|
|
- -
|
|
|
- <input type="time">
|
|
|
- <button class="transparent circle large">
|
|
|
- <i>delete</i>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div class="field border row">
|
|
|
- <input type="time">
|
|
|
- -
|
|
|
- <input type="time">
|
|
|
- <button class="transparent circle large">
|
|
|
- <i>delete</i>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <label class="checkbox">
|
|
|
- <input type="checkbox">
|
|
|
- <span>Donnerstag</span>
|
|
|
- </label>
|
|
|
- <label class="checkbox">
|
|
|
- <input type="checkbox">
|
|
|
- <span>Freitag</span>
|
|
|
- </label>
|
|
|
- <label class="checkbox">
|
|
|
- <input type="checkbox">
|
|
|
- <span>Samstag</span>
|
|
|
- </label>
|
|
|
- <label class="checkbox">
|
|
|
- <input type="checkbox">
|
|
|
- <span>Sonntag</span>
|
|
|
- </label>
|
|
|
- </nav>
|
|
|
- </fieldset>
|
|
|
+ <CreatorTimeInputs />
|
|
|
</fieldset>
|
|
|
|
|
|
-<fieldset>
|
|
|
- <legend>Eingaben</legend>
|
|
|
- <button class="large circle tertiary">
|
|
|
- <i>add</i>
|
|
|
- <span>Neues Feld</span>
|
|
|
- </button>
|
|
|
- <div class="row bottom-margin">
|
|
|
- <div class="max field border">
|
|
|
- <input id="custom-input">
|
|
|
- <label for="custom-input">Eingabefeld</label>
|
|
|
- </div>
|
|
|
- <div class="max field border">
|
|
|
- <select id="custom-type">
|
|
|
- <option>Texteingabe</option>
|
|
|
- <option>E-Mail</option>
|
|
|
- <option>Telefonnummer</option>
|
|
|
- </select>
|
|
|
- <label for="custom-type">Eingabeart</label>
|
|
|
- </div>
|
|
|
- <button class="circle error medium m1">
|
|
|
- <i>delete</i>
|
|
|
- <span>Button</span>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
-</fieldset>
|
|
|
+<CreatorInputs bind:creatorInputs />
|
|
|
|
|
|
<div class="grid">
|
|
|
<button class="top-margin s6 large red">Loeschen</button>
|