From d6f9ca4f79ad47341f3742f70eb58cd1e38c629a Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 6 Feb 2023 01:31:56 +0100 Subject: [PATCH] [NAT-2] Extra/Explanatory information field (#355) added the ability to add extra information to fields - popover on desktop - modal on mobile Co-authored-by: octycs --- openapi.yaml | 13 ++++++++++ webclient/src/core.js | 4 +++ webclient/src/index.html | 20 +++++++++++++++ webclient/src/views/view/view-view.inc | 34 +++++++++++++++++++++++-- webclient/src/views/view/view-view.js | 4 +++ webclient/src/views/view/view-view.scss | 16 ++++++++++++ 6 files changed, 89 insertions(+), 2 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 2ff21922f..1065a7751 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -418,6 +418,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 @@ -1155,6 +1159,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/core.js b/webclient/src/core.js index 457288c07..679378e0e 100644 --- a/webclient/src/core.js +++ b/webclient/src/core.js @@ -168,6 +168,10 @@ navigatum = (() => { error: { msg: null, }, + modal: { + header: null, + body: null, + }, }, methods: { searchFocus: function () { diff --git a/webclient/src/index.html b/webclient/src/index.html index 2fec9d99a..28e9dfe04 100644 --- a/webclient/src/index.html +++ b/webclient/src/index.html @@ -325,9 +325,29 @@ + + + +