root/trunk/luci/applications/luci-fonfw/luasrc/view/fon_fw/services.htm

Revision 1085, 0.9 kB (checked in by blogic, 14 months ago)

style

Line 
1<p class=textfield><%:fwall_serv Here you can configure, which applications should be reachable over the internet%></p>
2
3<table style="width: 350px;">
4<tr>
5<td>
6        <select size=5 name="ports.disable">
7<%-
8local uci = require("luci.model.uci").cursor()
9local dev = uci:get("registered", "fonreg", "dev")
10 for i, v in ipairs(self.disable) do
11        if not(v.key == "ssh" and dev ~= "1") then
12%>
13        <option value="<%=v.key%>"><%=v.value%></option>
14<% end
15end -%>
16</select><br>
17<input type="submit" name="ports.add" value="<%:add Add%> -->">
18</form>
19<form method="post" action="/luci/fon_admin/fon_fw/services" enctype="multipart/form-data">
20</td><td>
21<select size=5 name="ports.enable">
22<%-
23for i, v in ipairs(self.enable) do
24        if not(v.key == "ssh" and dev ~= "1") then
25%>
26        <option value="<%=v.key%>"><%=v.value%></option>
27<% end
28end -%>
29</select><br>
30<input type="submit" name="ports.remove" value="<--<%:remove Remove%>">
31</td></tr></table>
32<br>
Note: See TracBrowser for help on using the browser.