33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
mixin flight_popup()
|
|
l-popup(
|
|
:options="{maxWidth:400, minWidth:300}"
|
|
)
|
|
h1.row.text-medium.text-center.text-uppercase {{ travel.id }}
|
|
span.row.text-small.text-gray {{ travel.from }} - {{travel.to}}
|
|
span(v-if="edit_active")
|
|
.row.input(style="margin-bottom:0")
|
|
textarea.col-12.col-sm-12.text-small(
|
|
placeholder="",
|
|
v-model="travel.notes",
|
|
)
|
|
span.row.text-small.text-dark(v-else) {{ travel.notes }}
|
|
span(v-if="edit_active")
|
|
.leaflet-popup-button-group(v-if="edit_active")
|
|
a.text-gray(
|
|
v-on:click.prevent="place_delete('flight',idx)"
|
|
v-html="generate_icon('trash', 'NA')"
|
|
)
|
|
|
|
div(v-for= "(travel, idx) in journey.leg_get().travel")
|
|
l-polyline(:lat-lngs="travel.path" :color="travel.color || 'gray'")
|
|
+flight_popup()
|
|
|
|
l-marker(
|
|
v-for="(place, index) in travel.path"
|
|
:key="'plane'+index"
|
|
:lat-lng="place"
|
|
)
|
|
l-icon(v-html="generate_icon('plane', travel.color || 'gray', generate_rotation(index,travel.path), 'travel-path-icon')"
|
|
)
|
|
+flight_popup()
|