From d88e2973da6988ca93521348836151f1ee6a8444 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Wed, 10 Jan 2024 09:12:02 +0100 Subject: feat: add paginator to request page --- src/main/resources/static/style.css | 39 ++++++++++++++++ src/main/resources/templates/index.html | 81 ++++++++++++++++++++++----------- 2 files changed, 93 insertions(+), 27 deletions(-) (limited to 'src/main/resources') diff --git a/src/main/resources/static/style.css b/src/main/resources/static/style.css index f3266e2..e215eb0 100644 --- a/src/main/resources/static/style.css +++ b/src/main/resources/static/style.css @@ -92,6 +92,10 @@ nav li a:hover { text-decoration: underline; } +a { + color: var(--bg-blue); +} + .breadcrumps { margin: 0 auto; max-width: 1140px; @@ -188,6 +192,41 @@ table { font-family: sans-serif; } +.paged-table { + border: 1px solid var(--table-border); + border-radius: .5em; + background: white; +} + +.paged-table > table { + border: none; + background: transparent; +} + +.page-control { + border-radius: .5em; + padding: 1em 2em; + text-align: center; + + line-height: 1.75em; +} + +.page-control a { + padding: 0 .25em; + font-size: 1.75em; + color: var(--bg-gray); + text-decoration: none; +} + +.page-control a[href] { + color: var(--bg-blue); +} + +.page-control span { + padding: 0 .5em; + vertical-align: text-bottom; +} + #samples-table.max { width: 100vw; position: fixed; diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 96f1cfe..ec8b3c7 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -11,35 +11,62 @@

Letzte Anfragen

- - - - - - - - - - - - - - - - - - - - - - - - -
StatusTypIDDatumPatienten-ID
[[ ${request.status} ]][[ ${request.status} ]][[ ${request.status} ]][[ ${request.status} ]][[ ${request.status} ]][[ ${request.type} ]][[ ${request.uuid} ]] - [[ ${request.uuid} ]] - [[ ${request.patientId} ]]
+
+
+ + + Seite [[ ${requests.getNumber() + 1} ]] von [[ ${requests.getTotalPages()} ]] + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
StatusTypIDDatumPatienten-ID
[[ ${request.status} ]][[ ${request.status} ]][[ ${request.status} ]][[ ${request.status} ]][[ ${request.status} ]][[ ${request.type} ]][[ ${request.uuid} ]] + [[ ${request.uuid} ]] + [[ ${request.patientId} ]]
+
+ \ No newline at end of file -- cgit v1.2.3