|
|
@@ -0,0 +1,28 @@
|
|
|
+<script lang="ts">
|
|
|
+ import AppointmentInfo from "./AppointmentInfo.svelte";
|
|
|
+
|
|
|
+ export let active: boolean;
|
|
|
+
|
|
|
+ let title: string = "Title";
|
|
|
+ let location: string = "Somewhere";
|
|
|
+ let description: string = "Description ...";
|
|
|
+ let date: Date = new Date();
|
|
|
+ let time: string = "18:00";
|
|
|
+
|
|
|
+ function closeModal() {
|
|
|
+ active = false;
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<dialog class="max {active ? 'active': ''}">
|
|
|
+ <div class="center middle medium-padding">
|
|
|
+ <AppointmentInfo bind:title bind:location bind:description
|
|
|
+ bind:time bind:date isConfirmation={true} />
|
|
|
+
|
|
|
+ <nav class="right-align">
|
|
|
+ <button class="border" on:click={closeModal}>Cancel</button>
|
|
|
+ <button>Confirm</button>
|
|
|
+ </nav>
|
|
|
+ </div>
|
|
|
+</dialog>
|
|
|
+
|