From 89019d8a438cffff9c096f582e5cdedeca2af63c Mon Sep 17 00:00:00 2001 From: Sebastian Tilsch Date: Sat, 10 Feb 2024 13:39:50 +0100 Subject: [PATCH] Use custom edges for vernissage, midissage and finissage --- .../form/uischema/Exhibition.uischema.json | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/apps/exhibition-live/components/form/uischema/Exhibition.uischema.json b/apps/exhibition-live/components/form/uischema/Exhibition.uischema.json index 8e34dcdf..b7fdc39f 100644 --- a/apps/exhibition-live/components/form/uischema/Exhibition.uischema.json +++ b/apps/exhibition-live/components/form/uischema/Exhibition.uischema.json @@ -149,12 +149,24 @@ ] }, { - "type": "Control", - "scope": "#/properties/subEvent", - "label": "Unterereignisse", - "options": { - "detail": "GENERATED" - } + "type": "HorizontalLayout", + "elements": [ + { + "type": "Control", + "scope": "#/properties/vernissage", + "label": "Vernissage" + }, + { + "type": "Control", + "scope": "#/properties/midissage", + "label": "Midissage" + }, + { + "type": "Control", + "scope": "#/properties/finissage", + "label": "Finissage" + } + ] } ] } @@ -200,7 +212,7 @@ "label": "Ausgestellte Werke nach Personen", "scope": "#/properties/exponatsAndPersons", "options": { - "elementLabelTemplate": "{{=it.person?.name || ''}} - {{=it.exponat?.title || ''}})", + "elementLabelTemplate": "{{=it.role?.title || ''}}:{{=it.person?.name || ''}} - {{=it.exponat?.title || ''}}", "detail": "GENERATED", "isReifiedStatement": true } @@ -210,7 +222,7 @@ "label": "Ausgestellte Werke nach Institutionen", "scope": "#/properties/exponatsAndCorporations", "options": { - "elementLabelTemplate": "{{=it.corporation?.name || ''}} - {{=it.exponat?.title || ''}})", + "elementLabelTemplate": "{{=it.role?.title || ''}}:{{=it.corporation?.name || ''}} - {{=it.exponat?.title || ''}}", "detail": "GENERATED", "isReifiedStatement": true }