From 552ba2c875a9d9bd80fc2d6754b40f8a0cb6914f Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Tue, 17 Jan 2023 14:39:22 +0100 Subject: [PATCH] added the ability to add extra information to fields --- openapi.yaml | 13 ++++++++ webclient/src/views/view/view-view.inc | 41 +++++++++++++++++++++++-- webclient/src/views/view/view-view.scss | 5 +++ 3 files changed, 57 insertions(+), 2 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 5179af297..b22688f15 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -423,6 +423,10 @@ paths: text: 'Boltzmannstr. 3, EG, 85748 Garching b. München' - name: Sitzplätze text: '522' + extra: + header: Genauere Angaben + body: "für Prüfungen: 102 in eng, 71 in weit, 49 in corona" + calendar_url: 'https://campus.tum.de/tumonline/tvKalender.wSicht?cOrg=19691&cRes=12559&cReadonly=J' ranking_factors: rank_combined: 900 @@ -1089,6 +1093,15 @@ components: text: type: string example: 5602.EG.001 + extra: + type: object + properties: + header: + type: string + example: Genauere Angaben + body: + type: string + example: "für Prüfungen: 102 in eng, 71 in weit, 49 in corona" required: - name - text diff --git a/webclient/src/views/view/view-view.inc b/webclient/src/views/view/view-view.inc index 169bf81ee..8132dfe9a 100644 --- a/webclient/src/views/view/view-view.inc +++ b/webclient/src/views/view/view-view.inc @@ -396,7 +396,24 @@ {{ prop.name }} - {{ prop.text }} + {{ prop.text }} +
+ + + + +
+
+
+ {{prop.extra.header}} +
+
+ {{prop.extra.body}} +
+
+
+
+ ${{ _.view_view.info_table.links }}$ @@ -440,7 +457,27 @@ {{ prop.name }} - {{ prop.text }} + {{ prop.text }} +
+ + + + +
+
+
+ {{ prop.extra.header }} +
+
+ {{ prop.extra.body }} +
+ +
+
+
+ ${{ _.view_view.info_table.links }}$ diff --git a/webclient/src/views/view/view-view.scss b/webclient/src/views/view/view-view.scss index e87310770..919526d00 100644 --- a/webclient/src/views/view/view-view.scss +++ b/webclient/src/views/view/view-view.scss @@ -413,6 +413,11 @@ &:last-child { border-bottom: 0; } + + &.popover svg { + margin-left: 5px; + margin-bottom: -2px; + } } ul {