Skip to content

Commit

Permalink
CSV Import: Show note about locations and gliders
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Apr 2, 2024
1 parent afd83e8 commit b5db4da
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions frontend/src/routes/flights/add/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
{#if data.locations.length === 0}
<article class="message is-warning">
<div class="message-body">
<i class="fa-solid fa-warning" />&ensp;Warning: You haven't added any locations so far. To
be able to link a launch or landing location to your flight,
<i class="fa-solid fa-warning" />&ensp;<strong>Warning:</strong> You haven't added any
locations so far. To be able to link a launch or landing location to your flight,
<a href="/locations/">add a location</a> before adding a flight.
</div>
</article>
Expand All @@ -59,8 +59,8 @@
{#if data.gliders.length === 0}
<article class="message is-warning">
<div class="message-body">
<i class="fa-solid fa-warning" />&ensp;Warning: You haven't added any gliders so far. To
be able to link a glider to your flight,
<i class="fa-solid fa-warning" />&ensp;<strong>Warning:</strong> You haven't added any
gliders so far. To be able to link a glider to your flight,
<a href="/gliders/">add a glider</a> before adding a flight.
</div>
</article>
Expand Down
12 changes: 10 additions & 2 deletions frontend/src/routes/flights/import/csv/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,20 @@

<article class="message is-warning">
<div class="message-body">
<i class="fa-solid fa-warning" />&ensp;Warning: This import is still experimental. If you
experience any problems, please contact me at
<i class="fa-solid fa-warning" />&ensp;<strong>Warning:</strong> This import is still
experimental. If you experience any problems, please contact me at
<a href="mailto:flugbuech@bargen.dev">flugbuech@bargen.dev</a>!
</div>
</article>

<article class="message is-info">
<div class="message-body">
<strong>Note:</strong> The CSV import can import flights, but not gliders or locations. You
should make sure to add <a href="/locations/">locations</a> or <a href="/gliders/">gliders</a>
before you import your flights CSV, otherwise this information will be lost.
</div>
</article>

{#if state.kind === 'upload'}
<section>
<div class="content">
Expand Down

0 comments on commit b5db4da

Please sign in to comment.