fix: remove default adventure type and streamline image upload form
This commit is contained in:
@@ -48,7 +48,6 @@
|
|||||||
let adventure: Adventure = {
|
let adventure: Adventure = {
|
||||||
id: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
type: 'visited',
|
|
||||||
visits: [],
|
visits: [],
|
||||||
link: null,
|
link: null,
|
||||||
description: null,
|
description: null,
|
||||||
@@ -75,7 +74,6 @@
|
|||||||
adventure = {
|
adventure = {
|
||||||
id: adventureToEdit?.id || '',
|
id: adventureToEdit?.id || '',
|
||||||
name: adventureToEdit?.name || '',
|
name: adventureToEdit?.name || '',
|
||||||
type: adventureToEdit?.type || 'general',
|
|
||||||
link: adventureToEdit?.link || null,
|
link: adventureToEdit?.link || null,
|
||||||
description: adventureToEdit?.description || null,
|
description: adventureToEdit?.description || null,
|
||||||
activity_types: adventureToEdit?.activity_types || [],
|
activity_types: adventureToEdit?.activity_types || [],
|
||||||
@@ -1045,13 +1043,7 @@ it would also work to just use on:click on the MapLibre component itself. -->
|
|||||||
<label for="image" class="block font-medium mb-2">
|
<label for="image" class="block font-medium mb-2">
|
||||||
{$t('adventures.image')}
|
{$t('adventures.image')}
|
||||||
</label>
|
</label>
|
||||||
<form
|
<form class="flex flex-col items-start gap-2">
|
||||||
method="POST"
|
|
||||||
action="/adventures?/image"
|
|
||||||
use:enhance={imageSubmit}
|
|
||||||
enctype="multipart/form-data"
|
|
||||||
class="flex flex-col items-start gap-2"
|
|
||||||
>
|
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
name="image"
|
name="image"
|
||||||
|
|||||||
Reference in New Issue
Block a user