diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-08 15:20:07 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-08 15:20:07 +0000 |
commit | acb289083c6cc94363db8adbb94cfee8ff34938a (patch) | |
tree | 783188b42cf578928b7ee76e20f6d89a6792448f /applications/luci-firewall/luasrc/view | |
parent | df8601c86415bd048b00ce992b2bf2a81e9c4b38 (diff) |
applications/luci-firewall: fix rule table formatting, add mac & ip hints to various ip related fields
Diffstat (limited to 'applications/luci-firewall/luasrc/view')
-rw-r--r-- | applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm b/applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm index 6a49266b7b..9b17d52e7f 100644 --- a/applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm +++ b/applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm @@ -45,9 +45,9 @@ cbi_validate_field('_newfwd.intport', true, 'portrange'); cbi_combobox_init('_newfwd.intaddr', { - <% local i, e; for i, e in ipairs(luci.sys.net.arptable()) do -%> - <%- if i > 1 then %>,<% end -%>'<%=e["IP address"]%>': '<%=e["IP address"]%>' - <%- end %> }, '', '<%: -- custom -- %>'); + <% first = true; luci.sys.net.ipv4_hints(function(ip, name) %> + <%- if first then first = false else %>,<% end -%>'<%=ip%>': '<%=ip%> (<%=name%>)' + <%- end) %> }, '', '<%: -- custom -- %>'); cbi_bind(document.getElementById('_newfwd.extport'), 'blur', function() { |