Add engagements to bike

master
Max 4 years ago
parent 62864d1a04
commit dab1861101

@ -170,7 +170,10 @@ export class BikeComponent implements OnInit {
dataPath: 'provider.privatePerson.person.firstName', dataPath: 'provider.privatePerson.person.firstName',
translation: 'Vorname', translation: 'Vorname',
}, },
{ dataPath: 'provider.privatePerson.person.name', translation: 'Nachname' }, {
dataPath: 'provider.privatePerson.person.name',
translation: 'Nachname',
},
{ {
dataPath: 'provider.privatePerson.email', dataPath: 'provider.privatePerson.email',
translation: 'Email', translation: 'Email',
@ -220,7 +223,10 @@ export class BikeComponent implements OnInit {
}, },
}, },
{ dataPath: 'lendingStation.address.street', translation: 'Straße' }, { dataPath: 'lendingStation.address.street', translation: 'Straße' },
{ dataPath: 'lendingStation.address.number', translation: 'Hausnummer' }, {
dataPath: 'lendingStation.address.number',
translation: 'Hausnummer',
},
{ dataPath: 'lendingStation.address.zip', translation: 'PLZ' }, { dataPath: 'lendingStation.address.zip', translation: 'PLZ' },
{ dataPath: 'lendingStation.address.city', translation: 'Ort' }, { dataPath: 'lendingStation.address.city', translation: 'Ort' },
], ],
@ -288,6 +294,39 @@ export class BikeComponent implements OnInit {
return { filter: bike.name }; return { filter: bike.name };
}, },
}, },
{
type: 'ReferenceTable',
title: 'Engagements',
dataPath: 'engagements',
dataService: null,
columnInfo: [
{
dataPath: 'engagementType.name',
translation: 'Engagementtyp',
},
{
dataPath: 'engagementType.description',
translation: 'Engagementtyp Erklärung',
},
{ dataPath: 'dateRange', translation: 'Zeitraum' },
{
dataPath: 'participant.contactInformation.person.firstName',
translation: 'Aktiver Vorname',
},
{
dataPath: 'participant.contactInformation.person.name',
translation: 'Aktiver Nachname',
link: (row: any) => {
return '/participant/' + row['participant.id'];
},
},
],
editableReferences: false,
linkToTable: () => '/table/engagements',
linkToTableParams: (bike) => {
return { filter: bike.name };
},
},
]; ];
headlineDataPath = 'name'; headlineDataPath = 'name';

Loading…
Cancel
Save