From e13fa186e1cf0763e132b858ce431761df1fc55a Mon Sep 17 00:00:00 2001 From: efim Date: Wed, 11 Oct 2023 03:22:31 +0000 Subject: [PATCH] feat: preserving name \ region on active search by using post - all inputs of same form are sent so in active search scenario changing region also sends current name, or changing name also sends current region had to make additional post endpoint, but with cask i can directly use form-value as function argument and can reuse the code, yay --- .../src/main/resources/templates/index.html | 14 +++++--------- .../src/main/scala/example/Routes.scala | 13 +++++++++++-- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/16-countries-page-from-api/src/main/resources/templates/index.html b/16-countries-page-from-api/src/main/resources/templates/index.html index f08c782..d995ff9 100644 --- a/16-countries-page-from-api/src/main/resources/templates/index.html +++ b/16-countries-page-from-api/src/main/resources/templates/index.html @@ -61,10 +61,10 @@ hx-get="/country" hx-target="body" hx-push-url="true" - class="md:w-1/4 md:min-w-max" + class="contents" >
@@ -101,12 +99,10 @@ value="" > - -