feat: add force_connect and transport_mode fields to entry and story blueprints
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
title: 'Daily Entry'
|
title: 'Daily Entry'
|
||||||
'@extends':
|
|
||||||
type: default
|
|
||||||
context: blueprints://pages
|
|
||||||
|
|
||||||
form:
|
form:
|
||||||
fields:
|
fields:
|
||||||
@@ -9,9 +6,39 @@ form:
|
|||||||
type: tabs
|
type: tabs
|
||||||
active: 1
|
active: 1
|
||||||
fields:
|
fields:
|
||||||
entry:
|
|
||||||
|
content:
|
||||||
type: tab
|
type: tab
|
||||||
title: Entry
|
title: Content
|
||||||
|
fields:
|
||||||
|
header.title:
|
||||||
|
type: text
|
||||||
|
label: Title
|
||||||
|
validate:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
header.date:
|
||||||
|
type: datetime
|
||||||
|
label: Date
|
||||||
|
format: 'Y-m-d H:i'
|
||||||
|
validate:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
header.hero_image:
|
||||||
|
type: text
|
||||||
|
label: Hero Image
|
||||||
|
placeholder: 'photo.jpg'
|
||||||
|
help: 'Filename of the hero image (upload via Media tab). Leave blank to use the first image.'
|
||||||
|
|
||||||
|
content:
|
||||||
|
type: markdown
|
||||||
|
label: Content
|
||||||
|
validate:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
location:
|
||||||
|
type: tab
|
||||||
|
title: Location
|
||||||
fields:
|
fields:
|
||||||
header.location_city:
|
header.location_city:
|
||||||
type: text
|
type: text
|
||||||
@@ -24,58 +51,97 @@ form:
|
|||||||
label: Country
|
label: Country
|
||||||
placeholder: 'e.g. Japan'
|
placeholder: 'e.g. Japan'
|
||||||
|
|
||||||
col1:
|
header.lat:
|
||||||
type: columns
|
|
||||||
fields:
|
|
||||||
col1_lat:
|
|
||||||
type: column
|
|
||||||
fields:
|
|
||||||
header.lat:
|
|
||||||
type: text
|
|
||||||
label: Latitude
|
|
||||||
placeholder: '35.0116'
|
|
||||||
col1_lng:
|
|
||||||
type: column
|
|
||||||
fields:
|
|
||||||
header.lng:
|
|
||||||
type: text
|
|
||||||
label: Longitude
|
|
||||||
placeholder: '135.7681'
|
|
||||||
|
|
||||||
col2:
|
|
||||||
type: columns
|
|
||||||
fields:
|
|
||||||
col2_weather:
|
|
||||||
type: column
|
|
||||||
fields:
|
|
||||||
header.weather_desc:
|
|
||||||
type: select
|
|
||||||
label: Weather Condition
|
|
||||||
default: ''
|
|
||||||
options:
|
|
||||||
'': '— none —'
|
|
||||||
'Sunny': '☀️ Sunny'
|
|
||||||
'Partly cloudy': '⛅ Partly cloudy'
|
|
||||||
'Cloudy': '☁️ Cloudy'
|
|
||||||
'Foggy': '🌫️ Foggy'
|
|
||||||
'Drizzle': '🌦️ Drizzle'
|
|
||||||
'Rain': '🌧️ Rain'
|
|
||||||
'Snow': '❄️ Snow'
|
|
||||||
'Thunderstorm': '⛈️ Thunderstorm'
|
|
||||||
|
|
||||||
col2_temp:
|
|
||||||
type: column
|
|
||||||
fields:
|
|
||||||
header.weather_temp_c:
|
|
||||||
type: number
|
|
||||||
label: 'Temperature (°C)'
|
|
||||||
placeholder: '19'
|
|
||||||
validate:
|
|
||||||
min: -60
|
|
||||||
max: 60
|
|
||||||
|
|
||||||
header.hero_image:
|
|
||||||
type: text
|
type: text
|
||||||
label: Hero Image Filename
|
label: Latitude
|
||||||
placeholder: 'photo.jpg'
|
placeholder: '35.0116'
|
||||||
help: 'Filename of the hero/header image. Leave blank to use the first uploaded image.'
|
help: 'GPS latitude (decimal degrees)'
|
||||||
|
|
||||||
|
header.lng:
|
||||||
|
type: text
|
||||||
|
label: Longitude
|
||||||
|
placeholder: '135.7681'
|
||||||
|
help: 'GPS longitude (decimal degrees)'
|
||||||
|
|
||||||
|
weather:
|
||||||
|
type: tab
|
||||||
|
title: Weather
|
||||||
|
fields:
|
||||||
|
header.weather_desc:
|
||||||
|
type: select
|
||||||
|
label: Weather Condition
|
||||||
|
default: ''
|
||||||
|
options:
|
||||||
|
'': '— none —'
|
||||||
|
'Sunny': '☀️ Sunny'
|
||||||
|
'Partly cloudy': '⛅ Partly cloudy'
|
||||||
|
'Cloudy': '☁️ Cloudy'
|
||||||
|
'Foggy': '🌫️ Foggy'
|
||||||
|
'Drizzle': '🌦️ Drizzle'
|
||||||
|
'Rain': '🌧️ Rain'
|
||||||
|
'Snow': '❄️ Snow'
|
||||||
|
'Thunderstorm': '⛈️ Thunderstorm'
|
||||||
|
|
||||||
|
header.weather_temp_c:
|
||||||
|
type: number
|
||||||
|
label: 'Temperature (°C)'
|
||||||
|
placeholder: '19'
|
||||||
|
step: 1
|
||||||
|
validate:
|
||||||
|
min: -60
|
||||||
|
max: 60
|
||||||
|
|
||||||
|
publishing:
|
||||||
|
type: tab
|
||||||
|
title: Publishing
|
||||||
|
fields:
|
||||||
|
header.published:
|
||||||
|
type: toggle
|
||||||
|
label: Published
|
||||||
|
highlight: 1
|
||||||
|
default: 1
|
||||||
|
options:
|
||||||
|
1: 'Yes'
|
||||||
|
0: 'No'
|
||||||
|
validate:
|
||||||
|
type: bool
|
||||||
|
|
||||||
|
header.publish_date:
|
||||||
|
type: datetime
|
||||||
|
label: 'Publish Date'
|
||||||
|
help: 'Schedule future publication (leave blank to publish immediately)'
|
||||||
|
format: 'Y-m-d H:i'
|
||||||
|
|
||||||
|
header.unpublish_date:
|
||||||
|
type: datetime
|
||||||
|
label: 'Unpublish Date'
|
||||||
|
help: 'Automatically unpublish at this date/time'
|
||||||
|
format: 'Y-m-d H:i'
|
||||||
|
|
||||||
|
journey:
|
||||||
|
type: tab
|
||||||
|
title: Journey
|
||||||
|
fields:
|
||||||
|
header.transport_mode:
|
||||||
|
type: select
|
||||||
|
label: How I arrived here
|
||||||
|
default: ''
|
||||||
|
options:
|
||||||
|
'': '— not specified —'
|
||||||
|
'walking': 'Walking'
|
||||||
|
'bicycle': 'Bicycle'
|
||||||
|
'bus': 'Bus'
|
||||||
|
'train': 'Train'
|
||||||
|
'car': 'Car'
|
||||||
|
|
||||||
|
header.force_connect:
|
||||||
|
type: toggle
|
||||||
|
label: Force connector line
|
||||||
|
help: 'When GPX tracks are present, always draw a connector from the previous marker to this one'
|
||||||
|
highlight: 1
|
||||||
|
default: 0
|
||||||
|
options:
|
||||||
|
1: 'Yes'
|
||||||
|
0: 'No'
|
||||||
|
validate:
|
||||||
|
type: bool
|
||||||
|
|||||||
@@ -0,0 +1,111 @@
|
|||||||
|
title: 'Story'
|
||||||
|
|
||||||
|
form:
|
||||||
|
fields:
|
||||||
|
tabs:
|
||||||
|
type: tabs
|
||||||
|
active: 1
|
||||||
|
fields:
|
||||||
|
|
||||||
|
content:
|
||||||
|
type: tab
|
||||||
|
title: Content
|
||||||
|
fields:
|
||||||
|
header.title:
|
||||||
|
type: text
|
||||||
|
label: Title
|
||||||
|
validate:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
header.date:
|
||||||
|
type: datetime
|
||||||
|
label: Date
|
||||||
|
format: 'Y-m-d H:i'
|
||||||
|
validate:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
header.hero_image:
|
||||||
|
type: text
|
||||||
|
label: Hero Image
|
||||||
|
placeholder: 'hero.jpg'
|
||||||
|
help: 'Filename of the hero image (upload via Media tab)'
|
||||||
|
|
||||||
|
header.hero_alt:
|
||||||
|
type: text
|
||||||
|
label: Hero Image Alt Text
|
||||||
|
placeholder: 'Description of the hero image'
|
||||||
|
|
||||||
|
content:
|
||||||
|
type: markdown
|
||||||
|
label: Content
|
||||||
|
validate:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
location:
|
||||||
|
type: tab
|
||||||
|
title: Location
|
||||||
|
fields:
|
||||||
|
header.location_name:
|
||||||
|
type: text
|
||||||
|
label: Location Name
|
||||||
|
placeholder: 'e.g. Val d''Orcia'
|
||||||
|
|
||||||
|
header.location_country:
|
||||||
|
type: text
|
||||||
|
label: Country
|
||||||
|
placeholder: 'e.g. Italy'
|
||||||
|
|
||||||
|
header.lat:
|
||||||
|
type: text
|
||||||
|
label: Latitude
|
||||||
|
placeholder: '43.0780'
|
||||||
|
help: 'GPS latitude (decimal degrees)'
|
||||||
|
|
||||||
|
header.lng:
|
||||||
|
type: text
|
||||||
|
label: Longitude
|
||||||
|
placeholder: '11.6760'
|
||||||
|
help: 'GPS longitude (decimal degrees)'
|
||||||
|
|
||||||
|
publishing:
|
||||||
|
type: tab
|
||||||
|
title: Publishing
|
||||||
|
fields:
|
||||||
|
header.published:
|
||||||
|
type: toggle
|
||||||
|
label: Published
|
||||||
|
highlight: 1
|
||||||
|
default: 1
|
||||||
|
options:
|
||||||
|
1: 'Yes'
|
||||||
|
0: 'No'
|
||||||
|
validate:
|
||||||
|
type: bool
|
||||||
|
|
||||||
|
journey:
|
||||||
|
type: tab
|
||||||
|
title: Journey
|
||||||
|
fields:
|
||||||
|
header.transport_mode:
|
||||||
|
type: select
|
||||||
|
label: How I arrived here
|
||||||
|
default: ''
|
||||||
|
options:
|
||||||
|
'': '— not specified —'
|
||||||
|
'walking': 'Walking'
|
||||||
|
'bicycle': 'Bicycle'
|
||||||
|
'bus': 'Bus'
|
||||||
|
'train': 'Train'
|
||||||
|
'car': 'Car'
|
||||||
|
|
||||||
|
header.force_connect:
|
||||||
|
type: toggle
|
||||||
|
label: Force connector line
|
||||||
|
help: 'When GPX tracks are present, always draw a connector from the previous marker to this one'
|
||||||
|
highlight: 1
|
||||||
|
default: 0
|
||||||
|
options:
|
||||||
|
1: 'Yes'
|
||||||
|
0: 'No'
|
||||||
|
validate:
|
||||||
|
type: bool
|
||||||
Reference in New Issue
Block a user