Alternative fix for wan/WAN capitalization (#1476)

This commit is contained in:
Tim Wilkinson 2024-09-07 16:45:51 -07:00 committed by GitHub
parent 4d3818f8df
commit 21dccaaeb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -331,7 +331,9 @@ if (f) {
<option value="both" {{p.src == "both" ? "selected" : ""}}>Mesh &amp; WAN</option>
</select>
{% } else { %}
<input name="port_src" type="text" disabled value="wan">
<select name="port_src" disabled>
<option value="wan">WAN</option>
</select>
{% } %}
<input name="port_sports" type="text" required placeholder="Port or range" pattern="([1-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(?:-([1-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?" value="{{p.sports}}">
<select name="port_type">
@ -603,7 +605,9 @@ if (f) {
<option value="both">Mesh &amp; WAN</option>
</select>
{% } else { %}
<input name="port_src" type="text" disabled value="wan">
<select name="port_src" disabled>
<option value="wan">WAN</option>
</select>
{% } %}
<input name="port_sports" type="text" required placeholder="Port or range" pattern="([1-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(?:-([1-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?" value="">
<select name="port_type">