diff options
author | Steven Barth <steven@midlink.org> | 2008-03-26 20:59:13 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-03-26 20:59:13 +0000 |
commit | 3f1064b91949741af53eb1d198e228f768abaea8 (patch) | |
tree | c4af90d9392b51f59c77505a384016e0d7edcb9f /src/ffluci | |
parent | ca150b170ddce401f3fd2e92aa6c8c6e1eae12a3 (diff) |
* STUPID SVN!!!!111oneoneone ;-/
Diffstat (limited to 'src/ffluci')
-rw-r--r-- | src/ffluci/model/cbi/admin_network/ifaces.lua | 15 | ||||
-rw-r--r-- | src/ffluci/model/cbi/admin_network/vlan.lua | 12 | ||||
-rw-r--r-- | src/ffluci/view/admin_index/index.htm | 5 |
3 files changed, 32 insertions, 0 deletions
diff --git a/src/ffluci/model/cbi/admin_network/ifaces.lua b/src/ffluci/model/cbi/admin_network/ifaces.lua new file mode 100644 index 0000000000..f1d8086359 --- /dev/null +++ b/src/ffluci/model/cbi/admin_network/ifaces.lua @@ -0,0 +1,15 @@ +m = Map("network", "Schnittstellen") + +s = m:section(TypedSection, "interface") +s.addremove = true + +p = s:option(ListValue, "proto", "Protokoll") +p:add_value("static", "statisch") +p:add_value("dhcp", "DHCP") +s:option(Value, "ipaddr", "IP-Adresse").optional = 1 +s:option(Value, "netmask", "Netzmaske").optional = 1 +s:option(Value, "gateway", "Gateway").optional = 1 +s:option(Value, "dns", "DNS").optional = 1 +s:option(Value, "mtu", "MTU").optional = 1 + +return m
\ No newline at end of file diff --git a/src/ffluci/model/cbi/admin_network/vlan.lua b/src/ffluci/model/cbi/admin_network/vlan.lua new file mode 100644 index 0000000000..6a01152109 --- /dev/null +++ b/src/ffluci/model/cbi/admin_network/vlan.lua @@ -0,0 +1,12 @@ +m = Map("network", "VLAN", "Konfguriert den Switch des Routers.") + +s = m:section(TypedSection, "switch") + +-- ToDo: Autodetect things, maybe use MultiValue instead +for i = 0, 15 do + local c = s:option(Value, "vlan"..i, "vlan"..i) + c.default = "5" + c.optional = true +end + +return m
\ No newline at end of file diff --git a/src/ffluci/view/admin_index/index.htm b/src/ffluci/view/admin_index/index.htm new file mode 100644 index 0000000000..1f06e344cf --- /dev/null +++ b/src/ffluci/view/admin_index/index.htm @@ -0,0 +1,5 @@ +<%+header%> +<h1><%:hello Hallo!%></h1> +<p><%:admin1 Dies ist der Administrationsbereich. %> +<p><em>ToDo: Intelligenter Einleitungstext</em></p> +<%+footer%>
\ No newline at end of file |