Creator scaffolding
This commit is contained in:
17
src/routes/private/creator/steps/StepCreateEvent.svelte
Normal file
17
src/routes/private/creator/steps/StepCreateEvent.svelte
Normal file
@@ -0,0 +1,17 @@
|
||||
<script lang="ts">
|
||||
import { enhance } from '$app/forms';
|
||||
|
||||
let { events, new_event } = $props();
|
||||
|
||||
</script>
|
||||
|
||||
<p class="bg-grey-200">{JSON.stringify(events)}</p>
|
||||
|
||||
<form method="POST" action="?/create" use:enhance>
|
||||
<input type="text" name="name" />
|
||||
<input type="date" name="date" />
|
||||
<textarea name="description"></textarea>
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
|
||||
<p class="bg-grey-200">{JSON.stringify(new_event)}</p>
|
||||
Reference in New Issue
Block a user