1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Allow to not set any country

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-03-29 21:31:45 +02:00
parent be059a42ae
commit 08c0dea655

View file

@ -389,8 +389,9 @@
<label class="cbi-value-title"><%:Country%></label>
<div class="cbi-value-field">
<select class="cbi-input-select" name="country" size="1">
<option value="world" <% if uci:get("openmptcprouter","settings","country") == "world" or uci:get("openmptcprouter","settings","country") == nil then %>selected="selected"<% end %>>World</option>
<option value="china" <% if uci:get("openmptcprouter","settings","country") == "china" then %>selected="selected"<% end %>>China</option>
<option value="" <% if uci:get("openmptcprouter","settings","country") == nil then %>selected="selected"<% end %>><%:None%></option>
<option value="world" <% if uci:get("openmptcprouter","settings","country") == "world" then %>selected="selected"<% end %>><%:World%></option>
<option value="china" <% if uci:get("openmptcprouter","settings","country") == "china" then %>selected="selected"<% end %>><%:China%></option>
</select>
<br />
<div class="cbi-value-description">