modules/freifunk: fix typo
[project/luci.git] / modules / freifunk / luasrc / view / freifunk / remote_update.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id: contact.htm 3529 2008-10-07 13:10:24Z jow $
13
14 -%>
15 <%+header%>
16
17 <h2><%:Freifunk Remote Update%></h2>
18
19 <p><%:Check for new firmware versions and perform automatic updates.%></p>
20
21 <% if update then %>
22
23         <% if update.info then %>
24                 <strong><%:Update available!%></strong>
25                 <br /><br />
26                 <pre><%=update.info%></pre><br />
27         <% else %>
28                 <strong><%:The installed firmware is the most recent version.%></strong>
29                 <br /><br />
30         <% end %>
31
32         <p>
33                 <form method="post" action="" class="inline">
34                         <input type="hidden" name="flash" value="1" />
35                         <input type="submit" class="cbi-button cbi-button-apply" value="<%:Start Upgrade%>" />
36                 </form> 
37         </p>
38
39 <% elseif confirm then %>
40
41         <strong><%:Update Settings%></strong>
42         <br /><br />
43
44         <p><form method="post" action="" class="inline">
45                 <input type="hidden" name="flash" value="1" />
46                 <input type="hidden" name="confirm" value="1" />
47
48                 <input type="checkbox" class="cbi-input-checkbox" name="keepcfg" value="1" checked="checked" id="cb_keepcfg" />
49                 <label for="cb_keepcfg"><%:Keep configuration%></label><br />
50
51                 <input type="checkbox" class="cbi-input-checkbox" name="verify" value="1" checked="checked" id="cb_verify" />
52                 <label for="cb_verify"><%:Verify downloaded images%></label><br /><br />
53
54                 <input type="submit" class="cbi-button cbi-button-apply" value="<%:Confirm Upgrade%>" />
55         </form></p>
56
57 <% end %>
58
59 <%+footer%>