summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ffwizard-leipzig/src/view/freifunk/wizard.htm
blob: e3d6cb4c0973863077da04f6158b779b93ea42b3 (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
<%+header%>
<h1><%:ffwizard Freifunkassistent%></h1>
<p><%:ffwizard1 Dieser Assistent konfiguriert den Router für die Benutzung im Freifunknetz%></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 IP-Adresse%>:&nbsp;
			<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 Drahtlosgerät einrichten%>: <%=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 OLSR konfigurieren%></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 Drahtlos DHCP konfigurieren%></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 Erlaube Zugriff von internem Netzwerk%>:</div>
			<div class="cbi-value-field"><select name="frominternal">
				<option value=""></option>
<% for k, v in pairs(luci.model.uci.sections("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 Erlaube Zugriff auf externes Netzwerk%>:</div>
			<div class="cbi-value-field"><select name="toexternal">
				<option value=""></option>
<% for k, v in pairs(luci.model.uci.sections("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 Internetzugang ankündigen%></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 Konfigurieren%>" />
		<input type="reset" value="<%:reset Zurücksetzen%>" />
	</div>
</form> 
<%+footer%>