From 0aec5e44794d6458ee9b8d7b086922aec89aefeb Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 4 Mar 2024 17:03:41 +0100 Subject: [PATCH 1/2] style: fixed first column width --- src/main/resources/static/style.css | 13 +++++++++++++ src/main/resources/templates/configs.html | 4 ++-- src/main/resources/templates/configs/tokens.html | 9 +++++---- src/main/resources/templates/configs/userroles.html | 5 +---- 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/src/main/resources/static/style.css b/src/main/resources/static/style.css index 82b4d19..81c61eb 100644 --- a/src/main/resources/static/style.css +++ b/src/main/resources/static/style.css @@ -257,6 +257,10 @@ form.samplecode-input input:focus-visible { display: block; } +.userrole-form { + display: inline-block; +} + .userrole-form form { margin: 0; padding: 0; @@ -321,6 +325,15 @@ table { font-family: sans-serif; } +table.config-table td:first-child { + width: 24em; + min-width: fit-content; +} + +table.config-table td > button:last-of-type { + float: right; +} + .border > table { padding: 0; border: none; diff --git a/src/main/resources/templates/configs.html b/src/main/resources/templates/configs.html index 2103b0b..3e8aa9e 100644 --- a/src/main/resources/templates/configs.html +++ b/src/main/resources/templates/configs.html @@ -12,7 +12,7 @@

🔧 Allgemeine Konfiguration

- +
@@ -69,7 +69,7 @@ Hier sehen Sie eine Übersicht der konfigurierten Transformationen.

-
Name
+
diff --git a/src/main/resources/templates/configs/tokens.html b/src/main/resources/templates/configs/tokens.html index 15c70f0..0e245b0 100644 --- a/src/main/resources/templates/configs/tokens.html +++ b/src/main/resources/templates/configs/tokens.html @@ -7,19 +7,20 @@

Tokens

Noch keine Tokens vorhanden.
-
JSON-Path
+
- - - +
Name Erstellt
[[ ${token.name} ]] + + +
diff --git a/src/main/resources/templates/configs/userroles.html b/src/main/resources/templates/configs/userroles.html index f5e4586..e5b9c6d 100644 --- a/src/main/resources/templates/configs/userroles.html +++ b/src/main/resources/templates/configs/userroles.html @@ -7,12 +7,11 @@

Benutzerberechtigungen

Noch keine Benutzerberechtigungen vorhanden.
- +
- @@ -29,8 +28,6 @@ - - From 4bfe7dc69861c47b752f1f6d415f504d5518a03d Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Tue, 5 Mar 2024 10:24:25 +0100 Subject: [PATCH 2/2] style: layout and style changes for config page --- src/main/resources/static/style.css | 26 ++++ src/main/resources/templates/configs.html | 173 ++++++++++++---------- 2 files changed, 123 insertions(+), 76 deletions(-) diff --git a/src/main/resources/static/style.css b/src/main/resources/static/style.css index 81c61eb..1dd68ed 100644 --- a/src/main/resources/static/style.css +++ b/src/main/resources/static/style.css @@ -631,6 +631,32 @@ input.inline:focus-visible { color: var(--bg-red); } +.tab { + padding: 1em; + border: none; + border-radius: 3px 3px 0 0; + cursor: pointer; + transition: all 0.2s; + + font-weight: bold; +} + +.tab:hover, +.tab.active { + background: var(--table-border); +} + +.tabcontent { + border: 1px solid var(--table-border); + border-radius: 0 .5em .5em .5em; + display: none; + padding: 1em; +} + +.tabcontent.active { + display: block; +} + a.reload { display: none; position: absolute; diff --git a/src/main/resources/templates/configs.html b/src/main/resources/templates/configs.html index 3e8aa9e..1ac4a26 100644 --- a/src/main/resources/templates/configs.html +++ b/src/main/resources/templates/configs.html @@ -10,90 +10,111 @@

Konfiguration

-
-

🔧 Allgemeine Konfiguration

-
Benutzername Rolle
- - - - - - - +
+ + + +
+ +
+
+

🔧 Allgemeine Konfiguration

+
NameWert
+ - - + + + + + + + + + + + + + + + + + + +
Pseudonym erzeugt über[[ ${pseudonymGenerator} ]]NameWert
Pseudonym erzeugt über[[ ${pseudonymGenerator} ]]
MTBFile-Sender[[ ${mtbFileSender} ]]
REST-EndpunktKafka-Broker und Topics[[ ${mtbFileEndpoint} ]]
+
+ +
+
+
+
+ + +
+
+
+ +
+
+
+ +
+
+

Transformationen

+ +

Syntax

+ Hier einige Beispiele zum Syntax des JSON-Path +
    +
  • diagnoses[*].icdO3T.version: Ersetze die ICD-O3T-Version in allen Diagnosen, z.B. zur Version der deutschen Übersetzung
  • +
  • patient.gender: Ersetze das Geschlecht des Patienten, z.B. in das von bwHC verlangte Format
  • +
+ +

Konfigurierte Transformationen

+ +

+ Keine konfigurierten Transformationen. +

+
+ +

+ Hier sehen Sie eine Übersicht der konfigurierten Transformationen. +

+ + + - - + + - - - - + + + + + - -
MTBFile-Sender[[ ${mtbFileSender} ]]JSON-PathTransformation von ⇒ nach
REST-EndpunktKafka-Broker und Topics[[ ${mtbFileEndpoint} ]]
+ [[ ${transformation.path} ]] + + [[ ${transformation.existingValue} ]] + + [[ ${transformation.newValue} ]] +
-
- -
-
- -
-
- -
-
-
-
- -
-

Transformationen

- -

Syntax

- Hier einige Beispiele zum Syntax des JSON-Path -
    -
  • diagnoses[*].icdO3T.version: Ersetze die ICD-O3T-Version in allen Diagnosen, z.B. zur Version der deutschen Übersetzung
  • -
  • patient.gender: Ersetze das Geschlecht des Patienten, z.B. in das von bwHC verlangte Format
  • -
- -

Konfigurierte Transformationen

- -

- Keine konfigurierten Transformationen. -

-
- -

- Hier sehen Sie eine Übersicht der konfigurierten Transformationen. -

- - - - - - - - - - - - - - -
JSON-PathTransformation von ⇒ nach
- [[ ${transformation.path} ]] - - [[ ${transformation.existingValue} ]] - - [[ ${transformation.newValue} ]] -
-
-
+ + + + +
+ \ No newline at end of file