mirror of https://github.com/aredn/aredn.git
Alternative fix for wan/WAN capitalization (#1476)
This commit is contained in:
parent
4d3818f8df
commit
21dccaaeb1
|
@ -331,7 +331,9 @@ if (f) {
|
||||||
<option value="both" {{p.src == "both" ? "selected" : ""}}>Mesh & WAN</option>
|
<option value="both" {{p.src == "both" ? "selected" : ""}}>Mesh & WAN</option>
|
||||||
</select>
|
</select>
|
||||||
{% } else { %}
|
{% } 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}}">
|
<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">
|
<select name="port_type">
|
||||||
|
@ -603,7 +605,9 @@ if (f) {
|
||||||
<option value="both">Mesh & WAN</option>
|
<option value="both">Mesh & WAN</option>
|
||||||
</select>
|
</select>
|
||||||
{% } else { %}
|
{% } 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="">
|
<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">
|
<select name="port_type">
|
||||||
|
|
Loading…
Reference in New Issue