Skip to content

Commit 7c633f7

Browse files
committed
setup form tweaks; use lock emoji for ssids
1 parent d1d0fb5 commit 7c633f7

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

noisemeter-device/access-point-html.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ font-size: 24px;
1919
padding: 5px;
2020
margin-top: 3px;
2121
}
22+
select, input{margin-bottom: 1em;min-width: 150px;}
2223
.meter {
2324
height: 5px;
2425
position: relative;
@@ -75,16 +76,16 @@ const char *HTML_FOOTER = R"html(
7576
const char *HTML_BODY_FORM_HEADER = R"html(
7677
<p>Enter the wifi network name and password for your home network, which the sensor can connect to to get online:<br/><br/></p>
7778
<form method='POST' action='/submit' enctype='multipart/form-data'>
78-
<p>Wifi network name: (* = password required)</p>
79-
<select name='ssid' required>
79+
<label for='ssid'>Wifi network name (&#x1f512; = password required):</label><br>
80+
<select name='ssid' id='ssid' required>
8081
)html";
8182

8283
const char *HTML_BODY_FORM_FOOTER = R"html(
83-
</select>
84-
<p>Wifi network password:</p>
85-
<input type='password' name='psk'/>
86-
<p>Your Email (also your username for logging into the tRacket portal):</p>
87-
<input type='email' name='email'/>
84+
</select><br>
85+
<label for='psk'>Wifi network password:</label><br>
86+
<input type='password' name='psk' id='psk'/><br>
87+
<label for='email'>Your Email (also your username for logging into the tRacket portal):</label><br>
88+
<input type='email' name='email' id='email'/><br>
8889
<p><input type='submit' value='Connect'/></p>
8990
</form>
9091
)html";

noisemeter-device/access-point.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ bool AccessPoint::handle(WebServer& server, HTTPMethod method, String uri)
170170
response += ssid;
171171
response += "\">";
172172
response += ssid;
173-
if (auto ty = WiFi.encryptionType(i); ty != WIFI_AUTH_OPEN)
174-
response += " *";
173+
if (WiFi.encryptionType(i) != WIFI_AUTH_OPEN)
174+
response += " &#x1f512;";
175175
response += "</option>";
176176
}
177177

0 commit comments

Comments
 (0)