$Id$
]]--
+require("luci.tools.webadmin")
m = Map("ddns", translate("ddns"), translate("ddns_desc"))
s = m:section(TypedSection, "service", "")
iface = s:option(ListValue, "ip_network", translate("network"))
iface:depends("ip_source", "network")
iface.rmempty = true
-luci.model.uci.foreach("network", "interface",
- function (section)
- if section[".name"] ~= "loopback" then
- iface:value(section[".name"])
- end
- end)
+luci.tools.webadmin.cbi_add_networks(iface)
iface = s:option(ListValue, "ip_interface", translate("interface"))
iface:depends("ip_source", "interface")
$Id$
]]--
+require("luci.tools.webadmin")
m = Map("firewall", translate("fw_fw"), translate("fw_fw1"))
s = m:section(TypedSection, "defaults")
net = s:option(MultiValue, "network")
net.widget = "select"
net.rmempty = true
-luci.model.uci.foreach("network", "interface",
- function (section)
- if section[".name"] ~= "loopback" then
- net:value(section[".name"])
- end
- end)
+luci.tools.webadmin.cbi_add_networks(net)
function net.cfgvalue(self, section)
local value = MultiValue.cfgvalue(self, section)
$Id$
]]--
+require("luci.tools.webadmin")
require("luci.fs")
m = Map("olsr", "OLSR")
i.dynamic = true
network = i:option(ListValue, "Interface", translate("network"))
-network:value("")
-luci.model.uci.foreach("network", "interface",
- function (section)
- if section[".name"] ~= "loopback" then
- network:value(section[".name"])
- end
- end)
+luci.tools.webadmin.cbi_add_networks(network)
i:option(Value, "Ip4Broadcast")
i:option(Value, "HelloInterval")
s.template = "cbi/tblsection"
s:option(Value, "name", translate("name"))
-s:option(Value, "path")
+s:option(Value, "path").titleref = luci.dispatcher.build_url("admin", "system", "fstab")
s:option(Value, "users").rmempty = true
cbi_sectempty = "This section contains no values yet"
cbi_manual = "-- custom --"
cbi_select = "-- Please choose --"
+cbi_gorel = "Go to relevant configuration page"
\ No newline at end of file
cbi_addopt = "-- Zusätzliches Feld --"
cbi_sectempty = "Diese Sektion enthält noch keine Einträge"
cbi_manual = "-- benutzerdefiniert --"
-cbi_select = "-- Bitte auswählen --"
\ No newline at end of file
+cbi_select = "-- Bitte auswählen --"
+cbi_gorel = "Gehe zu relevanter Konfigurationsseite"
\ No newline at end of file
<div class="cbi-value" id="cbi-<%=self.config.."-"..section.."-"..self.option%>">
<label class="cbi-value-title"<%= attr("for", cbid) %>>
- <%- if self.titleref then -%><a class="cbi-title-ref" href="<%=self.titleref%>"><%- end -%>
+ <%- if self.titleref then -%><a title="<%=self.titledesc or translate('cbi_gorel')%>" class="cbi-title-ref" href="<%=self.titleref%>"><%- end -%>
<%-=self.title-%>
<%- if self.titleref then -%></a><%- end -%>
</label>
<%- end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
<th class="cbi-section-table-cell">
- <%- if k.titleref then -%><a class="cbi-title-ref" href="<%=k.titleref%>"><%- end -%>
+ <%- if k.titleref then -%><a title="<%=self.titledesc or translate('cbi_gorel')%>" class="cbi-title-ref" href="<%=k.titleref%>"><%- end -%>
<%-=k.title-%>
<%- if k.titleref then -%></a><%- end -%>
</th>
-%>
<%+cbi/valueheader%>
- <textarea onchange="cbi_d_update(this.id)"<%= attr("name", cbid) .. attr("id", cbid) .. ifattr(self.size, "cols") .. ifattr(self.rows, "rows") %>>
+ <textarea onchange="cbi_d_update(this.id)"<%= attr("name", cbid) .. attr("id", cbid) .. ifattr(self.size, "cols") .. ifattr(self.rows, "rows") .. ifattr(self.wrap, "wrap") %>>
<%-=luci.util.pcdata(self:cfgvalue(section))-%>
</textarea>
<%+cbi/valuefooter%>
end
end
)
+ field.titleref = luci.dispatcher.build_url("admin", "network", "network")
end
function cbi_add_knownips(field)
$Id$
]]--
+require("luci.tools.webadmin")
require("luci.model.uci")
require("luci.sys")
require("luci.util")
s.anonymous = true
iface = s:option(ListValue, "interface", translate("interface"))
+luci.tools.webadmin.cbi_add_networks(iface)
+
luci.model.uci.foreach("network", "interface",
function (section)
if section[".name"] ~= "loopback" then
iface.default = iface.default or section[".name"]
- iface:value(section[".name"])
s:depends("interface", section[".name"])
end
end)
ifname = s:option(DummyValue, "ifname", translate("device"))
ifname.stateful = true
+ifname.titleref = luci.dispatcher.build_url("admin", "network", "vlan")
if luci.model.uci.load("firewall") then
zone = s:option(DummyValue, "_zone", translate("zone"))
+ zone.titleref = luci.dispatcher.build_url("admin", "network", "firewall", "zones")
function zone.cfgvalue(self, section)
local zones = luci.tools.webadmin.network_get_zones(section)
$Id$
]]--
+require("luci.tools.webadmin")
m = Map("wireless", translate("networks"), translate("a_w_networks1"))
s = m:section(TypedSection, "wifi-iface", "")
network = s:option(ListValue, "network", translate("network"), translate("a_w_network1"))
network:value("")
-luci.model.uci.foreach("network", "interface",
- function (section)
- if section[".name"] ~= "loopback" then
- network:value(section[".name"])
- end
- end)
+luci.tools.webadmin.cbi_add_networks(network)
mode = s:option(ListValue, "mode", translate("mode"))
mode:value("ap", translate("a_w_ap"))
font-size: 95%;
}
+.cbi-title-ref {
+ color: inherit;
+ text-decoration: none;
+ padding-right: 18px;
+ background: url('../resources/cbi/link.gif') no-repeat scroll right center;
+ background-color: inherit;
+}
+
input[type=submit],
input[type=reset],
input[type=image],
font-size: 95%;
}
+.cbi-title-ref {
+ color: inherit;
+ text-decoration: none;
+ padding-right: 18px;
+ background: url('../resources/cbi/link.gif') no-repeat scroll right center;
+ background-color: inherit;
+}
+
input[type=submit],
input[type=reset],
input[type=image],
font-size: 95%;
}
+.cbi-title-ref {
+ color: inherit;
+ text-decoration: none;
+ padding-right: 18px;
+ background: url('../resources/cbi/link.gif') no-repeat scroll right center;
+ background-color: inherit;
+}
+
input[type=submit],
input[type=reset],
input[type=image],