summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-freifunk/luasrc/view/freifunk/remote_update.htm
blob: f087472d31cb5eb538b949794d3e016914f61a65 (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
<%#
 Copyright 2008 Steven Barth <steven@midlink.org>
 Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
 Licensed to the public under the Apache License 2.0.
-%>

<%+header%>

<h2><%:Freifunk Remote Update%></h2>

<p><%:Check for new firmware versions and perform automatic updates.%></p>

<% if update then %>

	<% if update.info then %>
		<strong><%:Update available!%></strong>
		<br /><br />
		<pre><%=update.info%></pre><br />
	<% else %>
		<strong><%:The installed firmware is the most recent version.%></strong>
		<br /><br />
	<% end %>

	<p>
		<form method="post" action="" class="inline">
			<input type="hidden" name="flash" value="1" />
			<input type="submit" class="cbi-button cbi-button-apply" value="<%:Start Upgrade%>" />
		</form>	
	</p>

<% elseif confirm then %>

	<strong><%:Update Settings%></strong>
	<br /><br />

	<p><form method="post" action="" class="inline">
		<input type="hidden" name="flash" value="1" />
		<input type="hidden" name="confirm" value="1" />

		<input type="checkbox" class="cbi-input-checkbox" name="keepcfg" value="1" checked="checked" id="cb_keepcfg" />
		<label for="cb_keepcfg"></label>
		<label for="cb_keepcfg"><%:Keep configuration%></label><br />

		<input type="checkbox" class="cbi-input-checkbox" name="verify" value="1" checked="checked" id="cb_verify" />
		<label for="cb_verify"></label>
		<label for="cb_verify"><%:Verify downloaded images%></label><br /><br />

		<input type="submit" class="cbi-button cbi-button-apply" value="<%:Confirm Upgrade%>" />
	</form></p>

<% end %>

<%+footer%>