Split start/end location fields to Events

This commit is contained in:
2022-07-25 13:12:01 +00:00
parent 4418ec2b82
commit 9c30d14975
4 changed files with 38 additions and 10 deletions

View File

@@ -110,9 +110,25 @@ const Events: CollectionConfig = {
]
},
{
name: 'location',
label: 'Location',
type: 'text'
type: 'row',
fields: [
{
name: 'startLocation',
label: 'Start Location',
type: 'text',
admin: {
width: '50%',
}
},
{
name: 'endLocation',
label: 'End Location',
type: 'text',
admin: {
width: '50%',
}
},
]
},
{
name: 'notes',

View File

@@ -41,7 +41,8 @@ export interface Event {
};
start: string;
end?: string;
location?: string;
startLocation?: string;
endLocation?: string;
notes?: string;
uploads: {
upload: string | Upload;