blob: 26a575e9b7eb8b10a5a3716bfebb8d52944269aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<%#
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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$
-%>
<%+header%>
<h1><%:ffwizard%></h1>
<p><%:ffwizard1%></p>
<br />
<form method="post" action="<%=controller%>/admin/index/wizard">
<div class="cbi-section-node">
<div class="cbi-value">
<div class="cbi-value-title"><%:ip%></div>
<div class="cbi-value-field"><input type="text" size="20" name="ip" /></div>
</div>
<% for i, k in ipairs(ifaces) do %>
<div class="cbi-value">
<div class="cbi-value-title"><%:wificfg%>: <%=k%></div>
<div class="cbi-value-field"><input type="checkbox" name="wifi.<%=k%>" value="1" checked="checked" /></div>
</div>
<% end %>
<div class="cbi-value">
<div class="cbi-value-title"><%:cfgolsr%></div>
<div class="cbi-value-field"><input type="checkbox" name="olsr" value="1" checked="checked" /></div>
</div>
<div class="cbi-value">
<div class="cbi-value-title"><%:cfgdhcp%></div>
<div class="cbi-value-field"><input type="checkbox" name="dhcp" value="1" checked="checked" /></div>
</div>
<div class="cbi-value">
<div class="cbi-value-title"><%:cfginternal%>:</div>
<div class="cbi-value-field"><select name="frominternal">
<option value=""></option>
<% for k, v in pairs(luci.model.uci.get_all("network")) do
if v[".type"] == "interface" and k ~= "loopback" then %>
<option value="<%=k%>"<% if k == "lan" then %> selected="selected"<% end %>><%=k%></option>
<% end
end %>
</select></div>
</div>
<div class="cbi-value">
<div class="cbi-value-title"><%:cfgexternal%>:</div>
<div class="cbi-value-field"><select name="toexternal">
<option value=""></option>
<% for k, v in pairs(luci.model.uci.get_all("network")) do
if v[".type"] == "interface" and k ~= "loopback" then %>
<option value="<%=k%>"<% if k == "wan" then %> selected="selected"<% end %>><%=k%></option>
<% end
end %>
</select></div>
</div>
<div class="cbi-value">
<div class="cbi-value-title"><%:shareinet%></div>
<div class="cbi-value-field"><input type="checkbox" name="shareinet" value="1" checked="checked" /></div>
</div>
</div>
<br />
<div>
<input type="submit" value="<%:configure%>" />
<input type="reset" value="<%:reset%>" />
</div>
</form>
<%+footer%>
|