Merge pull request #977 from stangri/luci-app-vpnbypass
[project/luci.git] / modules / luci-mod-freifunk / luasrc / view / freifunk / remote_update.htm
1 <%#
2  Copyright 2008 Steven Barth <steven@midlink.org>
3  Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
4  Licensed to the public under the Apache License 2.0.
5 -%>
6
7 <%+header%>
8
9 <h2><%:Freifunk Remote Update%></h2>
10
11 <p><%:Check for new firmware versions and perform automatic updates.%></p>
12
13 <% if update then %>
14
15         <% if update.info then %>
16                 <strong><%:Update available!%></strong>
17                 <br /><br />
18                 <pre><%=update.info%></pre><br />
19         <% else %>
20                 <strong><%:The installed firmware is the most recent version.%></strong>
21                 <br /><br />
22         <% end %>
23
24         <p>
25                 <form method="post" action="" class="inline">
26                         <input type="hidden" name="flash" value="1" />
27                         <input type="submit" class="cbi-button cbi-button-apply" value="<%:Start Upgrade%>" />
28                 </form> 
29         </p>
30
31 <% elseif confirm then %>
32
33         <strong><%:Update Settings%></strong>
34         <br /><br />
35
36         <p><form method="post" action="" class="inline">
37                 <input type="hidden" name="flash" value="1" />
38                 <input type="hidden" name="confirm" value="1" />
39
40                 <input type="checkbox" class="cbi-input-checkbox" name="keepcfg" value="1" checked="checked" id="cb_keepcfg" />
41                 <label for="cb_keepcfg"></label>
42                 <label for="cb_keepcfg"><%:Keep configuration%></label><br />
43
44                 <input type="checkbox" class="cbi-input-checkbox" name="verify" value="1" checked="checked" id="cb_verify" />
45                 <label for="cb_verify"></label>
46                 <label for="cb_verify"><%:Verify downloaded images%></label><br /><br />
47
48                 <input type="submit" class="cbi-button cbi-button-apply" value="<%:Confirm Upgrade%>" />
49         </form></p>
50
51 <% end %>
52
53 <%+footer%>