webui: disallow empty type[number]

...unless necessary, like with magnitude zero threshold
This commit is contained in:
Maxim Prokhorov
2024-07-30 01:27:33 +03:00
parent 8d8d60fb81
commit de2f96a7eb
13 changed files with 38 additions and 31 deletions

View File

@@ -31,7 +31,7 @@
<div class="pure-control-group">
<label>HTTP port</label>
<input name="webPort" type="text" data-action="reboot">
<input name="webPort" type="number" data-action="reboot" min="1" max="65535" required >
<span class="pure-form-message">
This is the port for the web interface and API requests.
If different than 80 (standard HTTP port) you will have to add it explicitly to your requests: http://myip:myport/