wifi&web page grammar/consistency (#1411)

* wifi&web page grammar/consistency

* colon spacing

* button capitals

* T
This commit is contained in:
divadiow
2024-11-02 20:38:51 +00:00
committed by GitHub
parent 7cf4d0bef4
commit cc73ba88ac

View File

@ -1207,7 +1207,7 @@ int http_fn_cfg_wifi(http_request_t* request) {
if(bChanged) {
poststr(request,"<h4> Device will reconnect after restarting</h4>");
}*/
poststr(request, "<h2> Check networks reachable by module</h2> This will lag few seconds.<br>");
poststr(request, "<h2> Check networks reachable by module</h2> This will take a few seconds<br>");
if (http_getArg(request->url, "scan", tmpA, sizeof(tmpA))) {
#ifdef WINDOWS
@ -1265,22 +1265,22 @@ int http_fn_cfg_wifi(http_request_t* request) {
}
poststr(request, "<form action=\"/cfg_wifi\">\
<input type=\"hidden\" id=\"scan\" name=\"scan\" value=\"1\">\
<input type=\"submit\" value=\"Scan local networks!\">\
<input type=\"submit\" value=\"Scan Local Networks\">\
</form>");
poststr_h4(request, "Use this to disconnect from your WiFi");
poststr(request, "<form action=\"/cfg_wifi_set\">\
<input type=\"hidden\" id=\"open\" name=\"open\" value=\"1\">\
<input type=\"submit\" value=\"Convert to open access wifi\" onclick=\"return confirm('Are you sure to convert module to open access WiFi?')\">\
<input type=\"submit\" value=\"Convert to Open Access WiFi\" onclick=\"return confirm('Are you sure you want to switch to open access WiFi?')\">\
</form>");
poststr_h2(request, "Use this to connect to your WiFi");
add_label_text_field(request, "SSID", "ssid", CFG_GetWiFiSSID(), "<form action=\"/cfg_wifi_set\">");
add_label_password_field(request, "", "pass", CFG_GetWiFiPass(), "<br>Password <span style=\"float:right;\"><input type=\"checkbox\" onclick=\"e=getElement('pass');if(this.checked){e.value='';e.type='text'}else e.type='password'\" > enable clear text password (clears password)</span>");
add_label_password_field(request, "", "pass", CFG_GetWiFiPass(), "<br>Password<span style=\"float:right;\"><input type=\"checkbox\" onclick=\"e=getElement('pass');if(this.checked){e.value='';e.type='text'}else e.type='password'\" > enable clear text password (clears existing)</span>");
poststr_h2(request, "Alternate WiFi (used when first one is not responding)");
#ifndef PLATFORM_BEKEN
poststr_h2(request, "SSID2 only on Beken Platform (BK7231T,BK7231N)");
poststr_h2(request, "SSID2 only on Beken Platform (BK7231T, BK7231N)");
#endif
add_label_text_field(request, "SSID2", "ssid2", CFG_GetWiFiSSID2(), "");
add_label_password_field(request, "", "pass2", CFG_GetWiFiPass2(), "<br>Password2 <span style=\"float:right;\"><input type=\"checkbox\" onclick=\"e=getElement('pass2');if(this.checked){e.value='';e.type='text'}else e.type='password'\" > enable clear text password (clears password)</span>");
add_label_password_field(request, "", "pass2", CFG_GetWiFiPass2(), "<br>Password2<span style=\"float:right;\"><input type=\"checkbox\" onclick=\"e=getElement('pass2');if(this.checked){e.value='';e.type='text'}else e.type='password'\" > enable clear text password (clears existing)</span>");
#if ALLOW_WEB_PASSWORD
int web_password_enabled = strcmp(CFG_GetWebPassword(), "") == 0 ? 0 : 1;
poststr_h2(request, "Web Authentication");
@ -1290,7 +1290,7 @@ int http_fn_cfg_wifi(http_request_t* request) {
add_label_password_field(request, "Admin Password", "web_admin_password", CFG_GetWebPassword(), "");
#endif
poststr(request, "<br><br>\
<input type=\"submit\" value=\"Submit\" onclick=\"return confirm('Are you sure? Please check SSID and pass twice?')\">\
<input type=\"submit\" value=\"Submit\" onclick=\"return confirm('Are you sure? Please double-check SSID and password.')\">\
</form>");
poststr(request, htmlFooterReturnToCfgOrMainPage);
http_html_end(request);
@ -2759,7 +2759,7 @@ int http_fn_cfg_generic(http_request_t* request) {
poststr(request, "<input type=\"hidden\" id=\"setFlags\" name=\"setFlags\" value=\"1\">");
poststr(request, SUBMIT_AND_END_FORM);
add_label_numeric_field(request, "Uptime seconds required to mark boot as OK", "boot_ok_delay",
add_label_numeric_field(request, "Uptime in seconds required to mark boot as OK", "boot_ok_delay",
CFG_GetBootOkSeconds(), "<form action=\"/cfg_generic\">");
poststr(request, "<br><input type=\"submit\" value=\"Save\"/></form>");