diff --git a/Arduino/CanGrow/include/Webserver/File_cangrow_CSS.h b/Arduino/CanGrow/include/Webserver/File_cangrow_CSS.h index 505da66..ece01f3 100644 --- a/Arduino/CanGrow/include/Webserver/File_cangrow_CSS.h +++ b/Arduino/CanGrow/include/Webserver/File_cangrow_CSS.h @@ -111,7 +111,9 @@ a:active { .subnavTitle { font-size: 1em; - margin-top: -15px; + /*font-weight: bold;*/ + margin-top: -20px; + margin-bottom: 10px; /*text-align: center;*/ } .nav li { diff --git a/Arduino/CanGrow/include/Webserver/Page_system.h b/Arduino/CanGrow/include/Webserver/Page_system.h index e0c5183..5e5fc94 100644 --- a/Arduino/CanGrow/include/Webserver/Page_system.h +++ b/Arduino/CanGrow/include/Webserver/Page_system.h @@ -47,9 +47,7 @@ String Proc_WebPage_system(const String& var) { } String Proc_WebPage_system_POST(const String& var) { - if(var == "SUBNAV") { - return String(Page_system_HTML_SUBNAV); - } else if(var == "SAVE_MSG") { + if(var == "SAVE_MSG") { return String(Common_HTML_SAVE_MSG); } else { return Proc_WebPage_system(var); @@ -57,9 +55,7 @@ String Proc_WebPage_system_POST(const String& var) { } String Proc_WebPage_system_POST_ERR(const String& var) { - if(var == "SUBNAV") { - return String(Page_system_HTML_SUBNAV); - } else if(var == "SAVE_MSG") { + if(var == "SAVE_MSG") { return String(Common_HTML_SAVE_MSG_ERR); } else { return Proc_WebPage_system(var); @@ -104,6 +100,8 @@ void WebPage_system(AsyncWebServerRequest *request) { String Proc_WebPage_system_restart(const String& var) { if(TestHeaderFooter(var)) { return AddHeaderFooter(var); + } else if(var == "SUBNAV") { + return String(Page_system_HTML_SUBNAV); } else if(var == "RESTART_MSG") { return String(Page_system_restart_HTML_RESTART_MSG); } else { @@ -173,6 +171,17 @@ void WebPage_system_update_ApplyUpdate(AsyncWebServerRequest *request, String fi } } +String Proc_WebPage_system_update(const String& var) { + if(TestHeaderFooter(var)) { + return AddHeaderFooter(var); + } else if(var == "SUBNAV") { + return String(Page_system_HTML_SUBNAV); + } else { + return String(); + } +} + +/* After an update.bin file was uploaded*/ String Proc_WebPage_system_update_POST(const String& var) { if(var == "CONFIGWIFI_IP") { if(config.wifi.dhcp == true) { @@ -194,7 +203,7 @@ void WebPage_system_update(AsyncWebServerRequest *request) { response->addHeader("Connection", "close"); request->send(response); } else { - request->send_P(200, "text/html", Page_system_update_HTML, AddHeaderFooter); + request->send_P(200, "text/html", Page_system_update_HTML, Proc_WebPage_system_update); } } @@ -205,6 +214,8 @@ void WebPage_system_update(AsyncWebServerRequest *request) { String Proc_WebPage_system_wipe(const String& var) { if(TestHeaderFooter(var)) { return AddHeaderFooter(var); + } else if(var == "SUBNAV") { + return String(Page_system_HTML_SUBNAV); } else if(var == "WIPE_MSG") { return String(Page_system_wipe_HTML_WIPE_MSG); } else { diff --git a/Arduino/CanGrow/include/Webserver/Page_system_HTML.h b/Arduino/CanGrow/include/Webserver/Page_system_HTML.h index 8540c3a..f7bb52b 100644 --- a/Arduino/CanGrow/include/Webserver/Page_system_HTML.h +++ b/Arduino/CanGrow/include/Webserver/Page_system_HTML.h @@ -66,7 +66,8 @@ const char* Page_system_HTML_SUBNAV PROGMEM = R"(