mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-02 19:55:18 +02:00
feat: Add Transportation and Lodging models to AdventureViewSet; update Avatar and TransportationModal components for improved user experience
This commit is contained in:
parent
232e01bf8f
commit
ea36b104b6
5 changed files with 57 additions and 7 deletions
|
@ -39,10 +39,10 @@
|
|||
</li>
|
||||
<li><button on:click={() => goto('/adventures')}>{$t('navbar.my_adventures')}</button></li>
|
||||
<li><button on:click={() => goto('/shared')}>{$t('navbar.shared_with_me')}</button></li>
|
||||
<li><button on:click={() => goto('/settings')}>{$t('navbar.settings')}</button></li>
|
||||
{#if user.is_staff}
|
||||
<li><button on:click={() => goto('/admin')}>{$t('navbar.admin_panel')}</button></li>
|
||||
{/if}
|
||||
<li><button on:click={() => goto('/settings')}>{$t('navbar.settings')}</button></li>
|
||||
<form method="post">
|
||||
<li><button formaction="/?/logout">{$t('navbar.logout')}</button></li>
|
||||
</form>
|
||||
|
|
|
@ -94,6 +94,7 @@
|
|||
'User-Agent': `AdventureLog / ${appVersion} `
|
||||
}
|
||||
});
|
||||
console.log(query);
|
||||
let data = await res.json();
|
||||
return data;
|
||||
};
|
||||
|
@ -464,7 +465,7 @@
|
|||
bind:value={starting_airport}
|
||||
name="starting_airport"
|
||||
class="input input-bordered w-full"
|
||||
placeholder="Enter starting airport code (e.g., JFK)"
|
||||
placeholder={$t('transportation.starting_airport_desc')}
|
||||
/>
|
||||
<label for="ending_airport" class="label">
|
||||
<span class="label-text">{$t('adventures.ending_airport')}</span>
|
||||
|
@ -475,10 +476,10 @@
|
|||
bind:value={ending_airport}
|
||||
name="ending_airport"
|
||||
class="input input-bordered w-full"
|
||||
placeholder="Enter ending airport code (e.g., LAX)"
|
||||
placeholder={$t('transportation.ending_airport_desc')}
|
||||
/>
|
||||
<button type="button" class="btn btn-primary mt-2" on:click={geocode}>
|
||||
Fetch Location Information
|
||||
{$t('transportation.fetch_location_information')}
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
@ -484,6 +484,9 @@
|
|||
"flight_number": "Flight Number",
|
||||
"from_location": "From Location",
|
||||
"to_location": "To Location",
|
||||
"fetch_location_information": "Fetch Location Information",
|
||||
"starting_airport_desc": "Enter starting airport code (e.g., JFK)",
|
||||
"ending_airport_desc": "Enter ending airport code (e.g., LAX)",
|
||||
"edit": "Edit",
|
||||
"modes": {
|
||||
"car": "Car",
|
||||
|
|
|
@ -203,7 +203,7 @@
|
|||
</MapLibre>
|
||||
|
||||
<svelte:head>
|
||||
<title>Travel Map</title>
|
||||
<title>Adventure Map</title>
|
||||
<meta name="description" content="View your travels on a map." />
|
||||
</svelte:head>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue