From 3f1bb4f4e24c7c7b7d57b640d8603242f306b720 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 15 Jul 2024 11:51:33 +0200 Subject: refactor: rename template attribute to reflect content --- .../dev/dnpm/etl/processor/web/HomeController.kt | 8 ++++---- src/main/resources/templates/index.html | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt b/src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt index 43f2f1d..5419477 100644 --- a/src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt +++ b/src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt @@ -51,14 +51,14 @@ class HomeController( return "index" } - @GetMapping(path = ["patient/{patientId}"]) + @GetMapping(path = ["patient/{patientPseudonym}"]) fun byPatient( - @PathVariable patientId: String, + @PathVariable patientPseudonym: String, @PageableDefault(page = 0, size = 20, sort = ["processedAt"], direction = Sort.Direction.DESC) pageable: Pageable, model: Model ): String { - val requests = requestService.findRequestByPatientId(PatientPseudonym(patientId), pageable) - model.addAttribute("patientId", patientId) + val requests = requestService.findRequestByPatientId(PatientPseudonym(patientPseudonym), pageable) + model.addAttribute("patientPseudonym", patientPseudonym) model.addAttribute("requests", requests) return "index" diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 568ba30..7ca0b67 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -12,9 +12,9 @@
| - | + | [[ ${request.patientPseudonym} ]] | -+ | [[ ${request.patientPseudonym} ]] | *** | -- cgit v1.2.3