Update template/module/map.pug
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
sora-ext 2025-02-24 15:16:11 +01:00
parent 923263e27f
commit b3867d42b3

View File

@ -1,6 +1,6 @@
l-map(
:zoom.sync="journey_data.main[idx].map.zoom",
:center.sync="journey_data.main[idx].map.center",
:zoom.sync="journey.data.main[idx].map.zoom",
:center.sync="journey.data.main[idx].map.center",
style="padding-top: 100%"
)
l-tile-layer(
@ -9,30 +9,30 @@ l-map(
)
l-control-scale(position="topright", :imperial="false", :metric="true")
l-marker(
v-if="journey_data.main[idx].hotel",
:lat-lng="journey_data.main[idx].hotel.latlon"
v-if="journey.data.main[idx].hotel",
:lat-lng="journey.data.main[idx].hotel.latlon"
)
l-icon
div(v-html="generate_icon(journey_data.main[idx].hotel, 'darkblue')")
div(v-html="generate_icon(journey.data.main[idx].hotel, 'darkblue')")
l-popup
h1.row.text-medium.text-center {{ journey_data.main[idx].hotel.sname }}
span.row.text-small.text-gray {{ journey_data.main[idx].hotel.display_name }}
h1.row.text-medium.text-center {{ journey.data.main[idx].hotel.sname }}
span.row.text-small.text-gray {{ journey.data.main[idx].hotel.display_name }}
span(v-if="journey_edit")
.row.input
textarea-autosize.col-12.col-sm-12.text-small(
placeholder="Notes",
v-model="journey_data.main[idx].hotel.notes",
v-model="journey.data.main[idx].hotel.notes",
:min-height="30",
:max-height="350"
)
span.row.text-small.text-white(v-else) {{ journey_data.main[idx].hotel.notes }}
span.row.text-small.text-white(v-else) {{ journey.data.main[idx].hotel.notes }}
l-marker(
v-for="place in journey_data.main[idx].places.activities",
v-for="place in journey.data.main[idx].places.activities",
:lat-lng="place.latlon"
)
l-icon
div(
v-if="place.step == journey_step_data.day",
v-if="place.step == journey.sel_day",
v-html="generate_icon(place)"
)
div(
@ -60,12 +60,12 @@ l-map(
a.leaflet-popup-close-button.text-gray(
style="right: 16px; visibility: visible",
href="#ad",
v-on:click.prevent="place.step = journey_step_data.day"
v-on:click.prevent="place.step = journey.sel_day"
) +
span.row.text-small.text-dark(v-else) {{ place.notes }}
l-marker(
v-for="place in journey_data.main[idx].places.restaurants",
v-for="place in journey.data.main[idx].places.restaurants",
:lat-lng.sync="place.latlon"
)
l-icon