refactor: Update transportation form with hidden input for is_public field
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user