From 76dc9685b0daac4527d0012e9925e20975319e51 Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 6 May 2024 23:21:10 +0200 Subject: [PATCH] Label JSON fields in UI --- src/endpoints/tsg.css | 5 +++++ src/endpoints/tsg.rs | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/endpoints/tsg.css b/src/endpoints/tsg.css index ed60750..e5d4ba8 100644 --- a/src/endpoints/tsg.css +++ b/src/endpoints/tsg.css @@ -12,6 +12,11 @@ h1 { color: #009682; text-align: center; } +label { + display: block; + font-weight: bold; + margin-top: 4mm; +} textarea { display: block; width: 100%; diff --git a/src/endpoints/tsg.rs b/src/endpoints/tsg.rs index 657fc60..21da962 100644 --- a/src/endpoints/tsg.rs +++ b/src/endpoints/tsg.rs @@ -27,8 +27,11 @@ pub async fn get() -> Markup { " eingeben." } - textarea name="global" placeholder="Global.json" {} - textarea name="month" placeholder="Month.json" {} + label for="i-global" { "Global.json" } + textarea #i-global name="global" placeholder="{}" {} + + label for="i-month" { "Month.json" } + textarea #i-month name="month" placeholder="{}" {} button #submit type="button" { "Arbeitszeitdokumentation generieren" }