Refactor adventure page layout and add dynamic content

This commit is contained in:
Sean Morley
2024-04-28 16:03:38 +00:00
parent c09028ae40
commit d4f94b436d
9 changed files with 165 additions and 78 deletions

View File

@@ -61,7 +61,7 @@
/>
</div>
<div>
<label for="date">date</label>
<label for="date">Date</label>
<input
type="date"
id="date"
@@ -69,6 +69,15 @@
class="input input-bordered w-full max-w-xs"
/>
</div>
<div>
<label for="date">Description</label>
<input
type="text"
id="description"
bind:value={adventureToEdit.description}
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 -->