fix: restore entry.yaml original structure, keep only Journey tab addition
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
title: 'Daily Entry'
|
title: 'Daily Entry'
|
||||||
|
'@extends':
|
||||||
|
type: default
|
||||||
|
context: blueprints://pages
|
||||||
|
|
||||||
form:
|
form:
|
||||||
fields:
|
fields:
|
||||||
@@ -6,39 +9,9 @@ form:
|
|||||||
type: tabs
|
type: tabs
|
||||||
active: 1
|
active: 1
|
||||||
fields:
|
fields:
|
||||||
|
entry:
|
||||||
content:
|
|
||||||
type: tab
|
type: tab
|
||||||
title: Content
|
title: Entry
|
||||||
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
|
||||||
@@ -51,21 +24,29 @@ form:
|
|||||||
label: Country
|
label: Country
|
||||||
placeholder: 'e.g. Japan'
|
placeholder: 'e.g. Japan'
|
||||||
|
|
||||||
|
col1:
|
||||||
|
type: columns
|
||||||
|
fields:
|
||||||
|
col1_lat:
|
||||||
|
type: column
|
||||||
|
fields:
|
||||||
header.lat:
|
header.lat:
|
||||||
type: text
|
type: text
|
||||||
label: Latitude
|
label: Latitude
|
||||||
placeholder: '35.0116'
|
placeholder: '35.0116'
|
||||||
help: 'GPS latitude (decimal degrees)'
|
col1_lng:
|
||||||
|
type: column
|
||||||
|
fields:
|
||||||
header.lng:
|
header.lng:
|
||||||
type: text
|
type: text
|
||||||
label: Longitude
|
label: Longitude
|
||||||
placeholder: '135.7681'
|
placeholder: '135.7681'
|
||||||
help: 'GPS longitude (decimal degrees)'
|
|
||||||
|
|
||||||
weather:
|
col2:
|
||||||
type: tab
|
type: columns
|
||||||
title: Weather
|
fields:
|
||||||
|
col2_weather:
|
||||||
|
type: column
|
||||||
fields:
|
fields:
|
||||||
header.weather_desc:
|
header.weather_desc:
|
||||||
type: select
|
type: select
|
||||||
@@ -82,41 +63,22 @@ form:
|
|||||||
'Snow': '❄️ Snow'
|
'Snow': '❄️ Snow'
|
||||||
'Thunderstorm': '⛈️ Thunderstorm'
|
'Thunderstorm': '⛈️ Thunderstorm'
|
||||||
|
|
||||||
|
col2_temp:
|
||||||
|
type: column
|
||||||
|
fields:
|
||||||
header.weather_temp_c:
|
header.weather_temp_c:
|
||||||
type: number
|
type: number
|
||||||
label: 'Temperature (°C)'
|
label: 'Temperature (°C)'
|
||||||
placeholder: '19'
|
placeholder: '19'
|
||||||
step: 1
|
|
||||||
validate:
|
validate:
|
||||||
min: -60
|
min: -60
|
||||||
max: 60
|
max: 60
|
||||||
|
|
||||||
publishing:
|
header.hero_image:
|
||||||
type: tab
|
type: text
|
||||||
title: Publishing
|
label: Hero Image Filename
|
||||||
fields:
|
placeholder: 'photo.jpg'
|
||||||
header.published:
|
help: 'Filename of the hero/header image. Leave blank to use the first uploaded image.'
|
||||||
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:
|
journey:
|
||||||
type: tab
|
type: tab
|
||||||
|
|||||||
Reference in New Issue
Block a user