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

Add backup option

This commit is contained in:
Ycarus 2018-12-12 21:59:08 +01:00
parent cad1cb5a06
commit 6958ceba6f
2 changed files with 21 additions and 3 deletions

View file

@ -50,6 +50,10 @@ end
<fieldset class="cbi-section" id="server">
<legend><%:Server settings%></legend>
<%
nbserver=0
uci:foreach("openmptcprouter","server", function(s)
nbserver=nbserver+1
end)
uci:foreach("openmptcprouter","server", function(s)
servername = s[".name"]
%>
@ -79,7 +83,18 @@ end
</div>
</div>
</div>
<%
if nbserver > 1 then
%>
<br />
<div class="cbi-value">
<label class="cbi-value-title"><%:Set server as backup%></label>
<div class="cbi-value-field">
<input class="cbi-input-checkbox" type="checkbox" name="<%=servername%>.backup" value="1" <% if uci:get("openmptcprouter",servername,"backup") == "1" then %>checked<% end %>/>
</div>
</div>
<%
end
end)
%>
<div class="cbi-section-create">