{transportationToEdit ? $t('transportation.edit_transportation') : $t('transportation.new_transportation')}

{transportationToEdit ? $t('transportation.update_transportation_details') : $t('transportation.create_new_transportation')}

{$t('adventures.basic_information')}
(transportation.rating = 1)} checked={transportation.rating === 1} /> (transportation.rating = 2)} checked={transportation.rating === 2} /> (transportation.rating = 3)} checked={transportation.rating === 3} /> (transportation.rating = 4)} checked={transportation.rating === 4} /> (transportation.rating = 5)} checked={transportation.rating === 5} />
{#if transportation.rating} {/if}
{#if transportation?.type == 'plane'} {:else} {/if}
{#if transportation?.type == 'plane'} {$t('adventures.flight_information')} {:else} {$t('adventures.location_information')} {/if}
{#if transportation?.type == 'plane'}
{#if !transportation.from_location || !transportation.to_location}
{/if} {/if} {#if transportation?.type != 'plane' || (transportation.from_location && transportation.to_location)}
{#if transportation?.type != 'plane'}
{/if} {/if}

{$t('adventures.route_map')}

{#if transportation.origin_latitude && transportation.origin_longitude} {/if} {#if transportation.destination_latitude && transportation.destination_longitude} {/if}
{#if transportation.from_location || transportation.to_location}
{/if}
{$t('adventures.images')}

{$t('adventures.image_upload_desc')}

{#if imageFiles.length > 0 && !transportation.id}

{$t('adventures.selected_images')}

    {#each imageFiles as file}
  • {file.name} ({Math.round(file.size / 1024)} KB)
  • {/each}
{/if} {#if transportation.id}

{$t('adventures.my_images')}

{#if transportation.images.length > 0}
{#each transportation.images as image}
{image.id}
{#if !image.is_primary} {/if}
{#if image.is_primary}
{/if}
{/each}
{:else}
{$t('adventures.no_images')}

Upload images to get started

{/if}
{/if}