1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-23 23:09:37 +02:00

refactor: Update transportation form with hidden input for is_public field

This commit is contained in:
Sean Morley 2024-07-27 22:23:23 -04:00
parent 2e2932a030
commit 61c3d23efa
2 changed files with 10 additions and 1 deletions

View file

@ -89,6 +89,15 @@
bind:value={transportationToEdit.id} bind:value={transportationToEdit.id}
class="input input-bordered w-full max-w-xs mt-1" class="input input-bordered w-full max-w-xs mt-1"
/> />
<input
type="text"
id="is_public"
name="is_public"
hidden
readonly
bind:value={transportationToEdit.is_public}
class="input input-bordered w-full max-w-xs mt-1"
/>
<div class="mb-2"> <div class="mb-2">
<label for="type">Type <Calendar class="inline-block mb-1 w-6 h-6" /></label><br /> <label for="type">Type <Calendar class="inline-block mb-1 w-6 h-6" /></label><br />
<select <select

View file

@ -11,7 +11,7 @@
import EditAdventure from '$lib/components/EditAdventure.svelte'; import EditAdventure from '$lib/components/EditAdventure.svelte';
import NotFound from '$lib/components/NotFound.svelte'; import NotFound from '$lib/components/NotFound.svelte';
import NewAdventure from '$lib/components/NewAdventure.svelte'; import NewAdventure from '$lib/components/NewAdventure.svelte';
import { DefaultMarker, MapEvents, MapLibre, Popup } from 'svelte-maplibre'; import { DefaultMarker, MapLibre, Popup } from 'svelte-maplibre';
import TransportationCard from '$lib/components/TransportationCard.svelte'; import TransportationCard from '$lib/components/TransportationCard.svelte';
import EditTransportation from '$lib/components/EditTransportation.svelte'; import EditTransportation from '$lib/components/EditTransportation.svelte';