From 2a8e2ae715bb8aa9d1959a62241289844bf060c8 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 28 Aug 2022 13:27:10 +0200 Subject: [PATCH] save and apply buttons in web interface, some styles fixed for better looks --- HTML/adapters.html | 12 ++++++------ HTML/res.js | 5 +++-- HTML/styles.css | 8 +++++--- components/webguiapp | 2 +- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/HTML/adapters.html b/HTML/adapters.html index eccc81c..83a0638 100644 --- a/HTML/adapters.html +++ b/HTML/adapters.html @@ -18,7 +18,7 @@
-
+
ETHERNET
+ PrintSaveBtn('eth'); PrintApplyBtn('eth');
-
+
WiFi
@@ -67,7 +67,7 @@
Включить WiFi

+ PrintSaveBtn('wifi'); PrintApplyBtn('wifi');
@@ -75,7 +75,7 @@
GPRS
-
+

+ PrintSaveBtn('gprs'); PrintApplyBtn('gprs');
diff --git a/HTML/res.js b/HTML/res.js index 52cdfe1..e6f4676 100644 --- a/HTML/res.js +++ b/HTML/res.js @@ -90,5 +90,6 @@ function PrintCheckBox(title,name,checked,action){document.write(""+title+"");} function PrintIntId(title,id,value,min,max){document.write(""+title+"");} function PrintSep(){document.write("");} -function PrintSaveBtn(){document.write("
");} -function PrintSaveFail(isfail){document.write("

Неверный формат данных!


");} +function PrintSaveBtn(form){document.write("");} +function PrintApplyBtn(form){document.write("");} +function PrintSaveFail(isfail){document.write("

Wrong data format!


");} diff --git a/HTML/styles.css b/HTML/styles.css index ca5126c..23a1874 100644 --- a/HTML/styles.css +++ b/HTML/styles.css @@ -42,7 +42,7 @@ body { margin: var(--header-height) 0 0 0; - padding: 1rem 1rem 0; + padding: 0 0 0; font-family: var(--body-font); font-size: var(--normal-font-size); background-color: var(--body-color); @@ -249,7 +249,7 @@ img { @media screen and (min-width: 768px) { body { - padding: 1rem 3rem 0 5rem; + padding: 0 0 0 5rem; } .header { padding: 0 3rem 0 5rem; @@ -353,9 +353,11 @@ textarea { .masonry-layout__panel { break-inside: avoid; + padding:5px; + } .masonry-layout__panel-content { - margin: 10px 0 0 10px; + margin: 10px 0; padding: 10px; border-radius: 10px; border:solid 1px #CCCCCC; diff --git a/components/webguiapp b/components/webguiapp index 876f7da..34be6b7 160000 --- a/components/webguiapp +++ b/components/webguiapp @@ -1 +1 @@ -Subproject commit 876f7dada9ab0f77090a47a76f43db0d1883b522 +Subproject commit 34be6b7dab4f342fcf2d8778471ea7bb357c53c2