ux: merge journey fields into entry/location tabs; unstack lat/lng and weather fields
This commit is contained in:
@@ -24,55 +24,38 @@ form:
|
|||||||
label: Country
|
label: Country
|
||||||
placeholder: 'e.g. Japan'
|
placeholder: 'e.g. Japan'
|
||||||
|
|
||||||
col1:
|
header.lat:
|
||||||
type: columns
|
type: text
|
||||||
fields:
|
label: Latitude
|
||||||
col1_lat:
|
placeholder: '35.0116'
|
||||||
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:
|
header.lng:
|
||||||
type: columns
|
type: text
|
||||||
fields:
|
label: Longitude
|
||||||
col2_weather:
|
placeholder: '135.7681'
|
||||||
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:
|
header.weather_desc:
|
||||||
type: column
|
type: select
|
||||||
fields:
|
label: Weather Condition
|
||||||
header.weather_temp_c:
|
default: ''
|
||||||
type: number
|
options:
|
||||||
label: 'Temperature (°C)'
|
'': '— none —'
|
||||||
placeholder: '19'
|
'Sunny': '☀️ Sunny'
|
||||||
validate:
|
'Partly cloudy': '⛅ Partly cloudy'
|
||||||
min: -60
|
'Cloudy': '☁️ Cloudy'
|
||||||
max: 60
|
'Foggy': '🌫️ Foggy'
|
||||||
|
'Drizzle': '🌦️ Drizzle'
|
||||||
|
'Rain': '🌧️ Rain'
|
||||||
|
'Snow': '❄️ Snow'
|
||||||
|
'Thunderstorm': '⛈️ Thunderstorm'
|
||||||
|
|
||||||
|
header.weather_temp_c:
|
||||||
|
type: number
|
||||||
|
label: 'Temperature (°C)'
|
||||||
|
placeholder: '19'
|
||||||
|
validate:
|
||||||
|
min: -60
|
||||||
|
max: 60
|
||||||
|
|
||||||
header.hero_image:
|
header.hero_image:
|
||||||
type: text
|
type: text
|
||||||
@@ -80,10 +63,6 @@ form:
|
|||||||
placeholder: 'photo.jpg'
|
placeholder: 'photo.jpg'
|
||||||
help: 'Filename of the hero/header image. Leave blank to use the first uploaded image.'
|
help: 'Filename of the hero/header image. Leave blank to use the first uploaded image.'
|
||||||
|
|
||||||
journey:
|
|
||||||
type: tab
|
|
||||||
title: Journey
|
|
||||||
fields:
|
|
||||||
header.transport_mode:
|
header.transport_mode:
|
||||||
type: select
|
type: select
|
||||||
label: How I arrived here
|
label: How I arrived here
|
||||||
|
|||||||
@@ -67,25 +67,6 @@ form:
|
|||||||
placeholder: '11.6760'
|
placeholder: '11.6760'
|
||||||
help: 'GPS longitude (decimal degrees)'
|
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:
|
header.transport_mode:
|
||||||
type: select
|
type: select
|
||||||
label: How I arrived here
|
label: How I arrived here
|
||||||
@@ -109,3 +90,18 @@ form:
|
|||||||
0: 'No'
|
0: 'No'
|
||||||
validate:
|
validate:
|
||||||
type: bool
|
type: bool
|
||||||
|
|
||||||
|
publishing:
|
||||||
|
type: tab
|
||||||
|
title: Publishing
|
||||||
|
fields:
|
||||||
|
header.published:
|
||||||
|
type: toggle
|
||||||
|
label: Published
|
||||||
|
highlight: 1
|
||||||
|
default: 1
|
||||||
|
options:
|
||||||
|
1: 'Yes'
|
||||||
|
0: 'No'
|
||||||
|
validate:
|
||||||
|
type: bool
|
||||||
|
|||||||
Reference in New Issue
Block a user