This commit is contained in:
37
template/module/journey/map/activities.pug
Normal file
37
template/module/journey/map/activities.pug
Normal file
@@ -0,0 +1,37 @@
|
||||
l-marker(
|
||||
v-for="(place, index) in journey.leg_get().places.activities",
|
||||
:key="'activities'+index",
|
||||
:lat-lng="place.latlon"
|
||||
)
|
||||
l-icon(
|
||||
v-if="place.step == journey.sel_day",
|
||||
v-html="generate_marker(place)"
|
||||
)
|
||||
l-icon(
|
||||
v-else-if="place.step == -1 || place.step == undefined",
|
||||
v-html="generate_marker(place, 'gray')"
|
||||
)
|
||||
l-icon(v-else-if="edit_active", v-html="generate_marker(place, 'lightgray')")
|
||||
l-icon(v-else)
|
||||
l-popup
|
||||
h1.row.text-medium.text-center {{ place.sname }}
|
||||
span.row.text-small.text-gray {{ place.display_name }}
|
||||
span(v-if="edit_active")
|
||||
.row.input(style="margin-bottom:0")
|
||||
textarea-autosize.col-12.col-sm-12.text-small(
|
||||
placeholder="Notes",
|
||||
v-model="place.notes",
|
||||
:min-height="30",
|
||||
:max-height="350"
|
||||
)
|
||||
a.leaflet-popup-close-button.text-gray(
|
||||
style="right: 0px; visibility: visible",
|
||||
href="#rm",
|
||||
v-on:click.prevent="place.step = -1"
|
||||
) -
|
||||
a.leaflet-popup-close-button.text-gray(
|
||||
style="right: 16px; visibility: visible",
|
||||
href="#ad",
|
||||
v-on:click.prevent="place.step = journey.sel_day"
|
||||
) +
|
||||
span.row.text-small.text-dark(v-else) {{ place.notes }}
|
18
template/module/journey/map/hotel.pug
Normal file
18
template/module/journey/map/hotel.pug
Normal file
@@ -0,0 +1,18 @@
|
||||
l-marker(
|
||||
v-if="journey.leg_get().hotel",
|
||||
:lat-lng="journey.leg_get().hotel.latlon"
|
||||
)
|
||||
l-icon(v-html="generate_marker(journey.leg_get().hotel, 'darkblue')")
|
||||
l-popup
|
||||
h1.row.text-medium.text-center {{ journey.leg_get().hotel.sname }}
|
||||
span.row.text-small.text-gray {{ journey.leg_get().hotel.display_name }}
|
||||
span(v-if="edit_active")
|
||||
.row.input(style="margin-bottom:0;")
|
||||
textarea-autosize.col-12.col-sm-12.text-small(
|
||||
placeholder="Notes",
|
||||
v-model="journey.leg_get().hotel.notes",
|
||||
:min-height="30",
|
||||
:max-height="350"
|
||||
)
|
||||
span.row.text-small.text-white(v-else) {{ journey.leg_get().hotel.notes }}
|
||||
|
5
template/module/journey/map/override.pug
Normal file
5
template/module/journey/map/override.pug
Normal file
@@ -0,0 +1,5 @@
|
||||
l-marker(
|
||||
v-if="map_override.active",
|
||||
:lat-lng="map_override.center"
|
||||
)
|
||||
l-icon(v-html="generate_marker('plus', 'darkgreen')")
|
18
template/module/journey/map/restaurants.pug
Normal file
18
template/module/journey/map/restaurants.pug
Normal file
@@ -0,0 +1,18 @@
|
||||
l-marker(
|
||||
v-for="(place, index) in journey.leg_get().places.restaurants",
|
||||
:key="'restaurants'+index"
|
||||
:lat-lng="place.latlon"
|
||||
)
|
||||
l-icon(v-html="generate_marker(place, 'cadetblue')")
|
||||
l-popup
|
||||
h1.row.text-medium.text-center {{ place.sname }}
|
||||
span.row.text-small.text-gray {{ place.display_name }}
|
||||
span(v-if="edit_active")
|
||||
.row.input(style="margin-bottom:0")
|
||||
textarea-autosize.col-12.col-sm-12.text-small(
|
||||
placeholder="Notes"
|
||||
v-model="place.notes"
|
||||
:min-height="30"
|
||||
:max-height="350"
|
||||
)
|
||||
span.row.text-small.text-dark(v-else) {{ place.notes }}
|
6
template/module/journey/map/right_menu.pug
Normal file
6
template/module/journey/map/right_menu.pug
Normal file
@@ -0,0 +1,6 @@
|
||||
.map-menu
|
||||
.map-menu-item( v-if="query.type" @click="query.type=''" v-html="generate_icon('close')")
|
||||
.map-menu-item(v-if="!query.type" @click="query.type='hotel'" v-html="generate_icon('bed')")
|
||||
.map-menu-item(v-if="!query.type" @click="query.type='restaurant'" v-html="generate_icon('utensils')")
|
||||
.map-menu-item(v-if="!query.type" @click="query.type='place'" v-html="generate_icon('star')")
|
||||
.map-menu-item(v-if="!query.type" @click="query.type='flight'" v-html="generate_icon('plane')")
|
9
template/module/journey/map/travel.pug
Normal file
9
template/module/journey/map/travel.pug
Normal file
@@ -0,0 +1,9 @@
|
||||
div(v-for= "travel in journey.leg_get().travel")
|
||||
l-polyline(:lat-lngs="travel.path" :color="travel.color || 'gray'")
|
||||
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')"
|
||||
)
|
Reference in New Issue
Block a user