This commit is contained in:
15
template/module/journey/leg/drawer.pug
Normal file
15
template/module/journey/leg/drawer.pug
Normal file
@@ -0,0 +1,15 @@
|
||||
.row.text-center
|
||||
.input.text-dark(style="width: 100%")
|
||||
input(
|
||||
type="search"
|
||||
@input="search_active"
|
||||
placeholder="Search ... "
|
||||
)
|
||||
ul
|
||||
li(
|
||||
v-for="item in query.res"
|
||||
:key="item.id"
|
||||
@mouseover="drawer_hover_item(item)"
|
||||
@mouseleave="drawer_hover_item()"
|
||||
@click="drawer_click_item(item)" )
|
||||
| {{ item.name }}
|
23
template/module/journey/leg/nav.pug
Normal file
23
template/module/journey/leg/nav.pug
Normal file
@@ -0,0 +1,23 @@
|
||||
.scroll-handler(
|
||||
@mouveleave="nav_mouseleave"
|
||||
@mousemove="nav_mousemove")
|
||||
draggable.scroll-content.list-group.bg-dark(
|
||||
tag="div",
|
||||
:list="journey.data.main",
|
||||
handle=".handle"
|
||||
)
|
||||
.list-group-item.handle(
|
||||
v-for="(element, idx) in journey.data.main",
|
||||
:key="idx",
|
||||
@click="journey.leg_sel(idx)",
|
||||
:class="journey.sel_leg == idx ? 'bg-primary' : 'bg-white'"
|
||||
)
|
||||
.text {{ element.title }}
|
||||
i.fa.fa-times.close.fright(
|
||||
style="top: 2px; right: 2px; position: absolute",
|
||||
@click="journey.rm_leg(idx)"
|
||||
)
|
||||
|
||||
.list-group-item.bg-white(@click="journey.add_leg()")
|
||||
.text Add Leg
|
||||
i.fa.fa-plus.add(style="top: 12px; right: 5px; position: absolute")
|
71
template/module/journey/leg/old_cfg.pug
Normal file
71
template/module/journey/leg/old_cfg.pug
Normal file
@@ -0,0 +1,71 @@
|
||||
div
|
||||
div
|
||||
.row.text-center
|
||||
div
|
||||
label Hotel
|
||||
multiselect#ajax(
|
||||
v-model="journey.leg_get().hotel",
|
||||
label="sname",
|
||||
track-by="place_id",
|
||||
placeholder="Type to search",
|
||||
open-direction="bottom",
|
||||
:options="query.res",
|
||||
:searchable="true",
|
||||
:loading="query.type=='hotel'",
|
||||
:internal-search="false",
|
||||
:clear-on-select="false",
|
||||
:options-limit="50",
|
||||
:limit="1",
|
||||
:max-height="600",
|
||||
@search-change="search_hotel"
|
||||
)
|
||||
.row.text-center
|
||||
div
|
||||
label Restoration
|
||||
multiselect#ajax(
|
||||
v-model="journey.leg_get().places.restaurants",
|
||||
label="sname",
|
||||
track-by="place_id",
|
||||
placeholder="Type to search",
|
||||
open-direction="bottom",
|
||||
:multiple="true",
|
||||
:options="query.res",
|
||||
:searchable="true",
|
||||
:loading="query.type == 'restaurant'",
|
||||
:internal-search="false",
|
||||
:clear-on-select="false",
|
||||
:options-limit="50",
|
||||
:limit="10",
|
||||
:max-height="600",
|
||||
@search-change="search_restaurant"
|
||||
)
|
||||
.row.text-center
|
||||
div
|
||||
label Activities
|
||||
multiselect#ajax(
|
||||
v-model="journey.leg_get().places.activities",
|
||||
label="sname",
|
||||
track-by="place_id",
|
||||
placeholder="Type to search",
|
||||
open-direction="bottom",
|
||||
:multiple="true",
|
||||
:options="query.res",
|
||||
:searchable="true",
|
||||
:loading="query.type=='place'",
|
||||
:internal-search="false",
|
||||
:clear-on-select="false",
|
||||
:options-limit="50",
|
||||
:limit="10",
|
||||
:max-height="600",
|
||||
@search-change="search_place"
|
||||
)
|
||||
.row.text-center
|
||||
div
|
||||
label Notes
|
||||
.input.text-dark(style="width: 100%")
|
||||
textarea-autosize.text-small(
|
||||
v-model="journey.leg_get().notes",
|
||||
placeholder="Notes",
|
||||
:min-height="30",
|
||||
:max-height="350"
|
||||
)
|
29
template/module/journey/leg/top.pug
Normal file
29
template/module/journey/leg/top.pug
Normal file
@@ -0,0 +1,29 @@
|
||||
.row.text-center
|
||||
.col-sm-2
|
||||
.input
|
||||
input(v-model="journey.leg_get().title")
|
||||
.col-sm-2
|
||||
.input
|
||||
input(
|
||||
placeholder="Day title",
|
||||
v-model="journey.leg_get().day_title[journey.sel_day]"
|
||||
)
|
||||
|
||||
.col-sm-4
|
||||
.input
|
||||
//- label Date Range ({{ journey.leg_len() }})
|
||||
date-picker(
|
||||
:lang="lang",
|
||||
v-model="journey.leg_get().date_range",
|
||||
range="",
|
||||
format="ddd D MMM",
|
||||
placeholder="Date Range",
|
||||
v-on:change="journey.date_update(journey.sel_leg)"
|
||||
)
|
||||
.col-sm-1
|
||||
.right.col-sm-2
|
||||
.input
|
||||
input(
|
||||
disabled="",
|
||||
:value="journey.date_sel() + ' (' + journey.sel_day + ')'"
|
||||
)
|
Reference in New Issue
Block a user