From a50452e3e37bd3c79b4e69447420c8cd4cc2388b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 8 Nov 2009 02:38:22 +0000 Subject: modules/admin-full: rewrite wifi join wizzard --- .../luasrc/view/admin_network/wifi_join.htm | 2 +- .../view/admin_network/wifi_join_settings.htm | 126 --------------------- 2 files changed, 1 insertion(+), 127 deletions(-) delete mode 100644 modules/admin-full/luasrc/view/admin_network/wifi_join_settings.htm (limited to 'modules/admin-full/luasrc/view') diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_join.htm b/modules/admin-full/luasrc/view/admin_network/wifi_join.htm index 43ba40bf15..6ed4627dc0 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_join.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_join.htm @@ -71,7 +71,7 @@ $Id$ <%+header%> -

<%:Wireless Scan%>

+

<%:Join Network: Wireless Scan%>

diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_join_settings.htm b/modules/admin-full/luasrc/view/admin_network/wifi_join_settings.htm deleted file mode 100644 index b29de61a0c..0000000000 --- a/modules/admin-full/luasrc/view/admin_network/wifi_join_settings.htm +++ /dev/null @@ -1,126 +0,0 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2009 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> - -<%- - - local sys = require "luci.sys" - local utl = require "luci.util" - local uci = require "luci.model.uci".cursor_state() - - local ifaces = { } - uci:foreach("network", "interface", function(i) - if i.ifname ~= "lo" then - ifaces[#ifaces+1] = { i['.name'], i.ifname, i.ipaddr } - end - end) - - local dev = luci.http.formvalue("device") - local iw = luci.sys.wifi.getiwinfo(dev) - - local requirement - - if iwinfo.type(dev) == "broadcom" and not nixio.fs.access("/usr/sbin/nas") then - requirement = luci.i18n.translatef("You need to install the Broadcom nas supplicant to use WPA!" - % luci.dispatcher.build_url("admin/system/packages?url=nas&submit=1")) - elseif not nixio.fs.access("/usr/sbin/wpa_supplicant") then - requirement = luci.i18n.translatef("You need to install wpa-supplicant to use WPA!" - % luci.dispatcher.build_url("admin/system/packages?url=wpa-supplicant&submit=1")) - end - --%> - -<%+header%> - -

<%:Join Network%>

- -
-
-
- <%=luci.i18n.translatef("You are about to join the wireless network %s. " .. - "In order to complete the process, you need to provide some additional details.", - utl.pcdata(luci.http.formvalue("join") or "(hidden)") - )%> -
- -
- - " /> - " /> - " /> - " /> - " /> - " /> - " /> - - <% if luci.http.formvalue("wep") == "1" then %> -
- -

- <% elseif tonumber(luci.http.formvalue("wpa_version") or 0) > 0 and luci.http.formvalue("wpa_suites") == "PSK" then %> -
- - - <% if tonumber(luci.http.formvalue("wpa_version") or 0) == 3 then %> - - <% else %> - " /> - <% end %> - - <% if requirement then %> -   <%=requirement%> - <% end %> - -

- <% end %> - -
- - -

-

- - <% if luci.http.formvalue("mode") == "Ad-Hoc" then %> - - -
- <% end %> - - <% if iw.mbssid_support then %> - - -
- <% else %> - - <% end %> - - - -
-
-
- - -
-
- -<%+footer%> -- cgit v1.2.3