Skip to content

Commit

Permalink
improving event visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
RudiThoeni committed Apr 22, 2024
1 parent 68283e0 commit 2e6fbc8
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions databrowser/src/config/tourism/event/event.sharedView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,13 @@ export const eventSharedView = (): DetailViewConfig | EditViewConfig => ({
shortnameWithLogoAndMainImageSubCategory(),
{
name: 'IDs',
properties: [
idReadOnlyCell(),
{
title: 'Area Id',
component: CellComponent.StringCell,
objectMapping: { text: 'LocationInfo.AreaInfo.Id' },
},
],
properties: [idReadOnlyCell()],
},
dataStatesSubCategory(),
sourceSubCategoryWithDistinct('event'),
],
},
textInfoCategory(),
contactCategory(),
imageGalleryCategory(),
{
name: 'Event details',
Expand All @@ -63,7 +55,7 @@ export const eventSharedView = (): DetailViewConfig | EditViewConfig => ({
{
title: 'Date End',
component: CellComponent.DateCell,
objectMapping: { date: 'EventDatesEnd' },
objectMapping: { date: 'DateEnd' },
params: { type: 'datetime', format: DEFAULT_DATE_TIME_FORMAT },
},
{
Expand All @@ -73,23 +65,30 @@ export const eventSharedView = (): DetailViewConfig | EditViewConfig => ({
},
],
},
],
},
contactCategory(),
{
name: 'Organizer details',
slug: 'Organizer-details',
subcategories: [
{
name: 'Organizer Info',
properties: [
{
title: 'Company / Name',
component: CellComponent.StringCell,
objectMapping: { text: 'ContactInfos.{language}.CompanyName' },
objectMapping: { text: 'OrganizerInfos.{language}.CompanyName' },
},
{
title: 'Tax Number',
component: CellComponent.StringCell,
objectMapping: { text: 'ContactInfos.{language}.Tax' },
objectMapping: { text: 'OrganizerInfos.{language}.Tax' },
},
{
title: 'Vat',
component: CellComponent.StringCell,
objectMapping: { text: 'ContactInfos.{language}.Vat' },
objectMapping: { text: 'OrganizerInfos.{language}.Vat' },
},
],
},
Expand All @@ -99,22 +98,22 @@ export const eventSharedView = (): DetailViewConfig | EditViewConfig => ({
{
title: 'Address',
component: CellComponent.StringCell,
objectMapping: { text: 'ContactInfos.{language}.Address' },
objectMapping: { text: 'OrganizerInfos.{language}.Address' },
},
{
title: 'Zip Code',
component: CellComponent.StringCell,
objectMapping: { text: 'ContactInfos.{language}.ZipCode' },
objectMapping: { text: 'OrganizerInfos.{language}.ZipCode' },
},
{
title: 'Country Name',
component: CellComponent.StringCell,
objectMapping: { text: 'ContactInfos.{language}.CountryName' },
objectMapping: { text: 'OrganizerInfos.{language}.CountryName' },
},
{
title: 'Country Code',
component: CellComponent.StringCell,
objectMapping: { text: 'ContactInfos.{language}.CountryCode' },
objectMapping: { text: 'OrganizerInfos.{language}.CountryCode' },
},
],
},
Expand All @@ -124,17 +123,17 @@ export const eventSharedView = (): DetailViewConfig | EditViewConfig => ({
{
title: 'Email',
component: CellComponent.StringCell,
objectMapping: { text: 'ContactInfos.{language}.Email' },
objectMapping: { text: 'OrganizerInfos.{language}.Email' },
},
{
title: 'Phonenumber',
component: CellComponent.StringCell,
objectMapping: { text: 'ContactInfos.{language}.Phonenumber' },
objectMapping: { text: 'OrganizerInfos.{language}.Phonenumber' },
},
{
title: 'Url',
component: CellComponent.StringCell,
objectMapping: { text: 'ContactInfos.{language}.Url' },
objectMapping: { text: 'OrganizerInfos.{language}.Url' },
},
],
},
Expand Down

0 comments on commit 2e6fbc8

Please sign in to comment.