Add image url to adventures and plans

This commit is contained in:
Sean Morley
2024-05-26 13:49:57 +00:00
parent 175c088776
commit 10bd897a55
5 changed files with 58 additions and 9 deletions

View File

@@ -9,6 +9,7 @@
location: "",
date: "",
activityTypes: [],
imageUrl: "",
};
import { createEventDispatcher } from "svelte";
@@ -121,6 +122,16 @@
class="input input-bordered w-full max-w-xs"
/>
</div>
<div>
<label for="rating">Image URL</label>
<input
type="url"
id="iamgeUrl"
bind:value={newAdventure.imageUrl}
class="input input-bordered w-full max-w-xs"
/>
</div>
<button
type="submit"
class="btn btn-primary mr-4 mt-4"

View File

@@ -110,6 +110,15 @@
class="input input-bordered w-full max-w-xs"
/>
</div>
<div>
<label for="rating">Image URL</label>
<input
type="url"
id="imageUrl"
bind:value={adventureToEdit.imageUrl}
class="input input-bordered w-full max-w-xs"
/>
</div>
<button class="btn btn-primary mr-4 mt-4" on:click={submit}>Save</button
>
<!-- if there is a button in form, it will close the modal -->