From b5d1637e0f48763cf0b74b5ecc80666aad14b10d Mon Sep 17 00:00:00 2001 From: schrom01 Date: Tue, 23 Aug 2022 17:18:51 +0200 Subject: [PATCH] implemented Toggle Switch --- Webserver/Templates/dashboard.html | 10 ++++++---- Webserver/Templates/header.html | 9 +++++++-- Webserver/static/Styles/header.css | 3 ++- Webserver/static/Styles/main.css | 5 +++++ 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/Webserver/Templates/dashboard.html b/Webserver/Templates/dashboard.html index bcc3ff3..502b46c 100644 --- a/Webserver/Templates/dashboard.html +++ b/Webserver/Templates/dashboard.html @@ -114,10 +114,12 @@ {% endif %} - - -

{{'A' if zone.autoMode else 'M'}}

-
+ + {{ translater.getTranslation("operating mode") }}: {{translater.getTranslation("automatic mode") if zone.autoMode else translater.getTranslation("manual mode")}} diff --git a/Webserver/Templates/header.html b/Webserver/Templates/header.html index 5dbb9bd..d1eb6a4 100644 --- a/Webserver/Templates/header.html +++ b/Webserver/Templates/header.html @@ -3,7 +3,9 @@ + + @@ -29,11 +34,11 @@ -
+

{{ translater.getTranslation("Irrigation") }}-
{{ translater.getTranslation("system") }}

-
+ diff --git a/Webserver/static/Styles/header.css b/Webserver/static/Styles/header.css index 570ac50..690ed9e 100644 --- a/Webserver/static/Styles/header.css +++ b/Webserver/static/Styles/header.css @@ -45,7 +45,8 @@ nav ul li a:hover{ background-color: darkblue; padding-top: 0px; padding-bottom: 0px; - margin: 0px; + margin: 0px; + text-decoration: none; } .heading h1{ diff --git a/Webserver/static/Styles/main.css b/Webserver/static/Styles/main.css index 453347f..4ed0a3a 100644 --- a/Webserver/static/Styles/main.css +++ b/Webserver/static/Styles/main.css @@ -9,4 +9,9 @@ h2{ font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif; text-transform: uppercase; margin-bottom: 2em; +} + +h3{ + font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif; + text-transform: uppercase; } \ No newline at end of file