950eba8e75c05ee958073d4aca8462aa668d9eb4
[project/luci.git] / modules / admin-full / luasrc / view / admin_system / upgrade.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008-2009 Jo-Philipp Wich <xm@subsignal.org>
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$
13
14 -%>
15
16 <%+header%>
17
18 <h2><a id="content" name="content"><%:System%> - <%:Flash Firmware%> - <%:Verify%></a></h2>
19 <p>
20 <%_ The flash image was uploaded.
21 Below is the checksum and file size listed,
22 compare them with the original file to ensure data integrity.<br />
23 Click "Proceed" below to start the flash procedure. %>
24
25 <% if storage > 0 and size > storage then %>
26 <br /><br />
27 <div class="error"><%:It appears that you try to
28 flash an image that does not fit into the flash memory, please verify
29 the image file! %></div>
30 <% end %>
31
32 </p>
33
34 <fieldset class="cbi-section">
35 <ul>
36 <li><%:Checksum%>: <code><%=checksum%></code></li>
37 <li><%:Size%>: <%
38 local w = require "luci.tools.webadmin"
39 write(w.byte_format(size))
40
41 if storage > 0 then
42 write(luci.i18n.translatef(
43 " (%s available)",
44 w.byte_format(storage)
45 ))
46 end
47 %></li>
48 <li><% if keep then %>
49 <%:Configuration files will be kept.%>
50 <% else %>
51 <%:Note: Configuration files will be erased.%>
52 <% end %></li>
53 </ul>
54 </fieldset>
55
56 <div class="cbi-page-actions right">
57 <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
58 <input type="hidden" name="step" value="2" />
59 <input type="hidden" name="keep" value="<%=keep and "1" or ""%>" />
60 <input class="cbi-button cbi-button-apply" type="submit" value="<%:Proceed%>" />
61 </form>
62 <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
63 <input class="cbi-button cbi-button-reset" type="submit" value="<%:Cancel%>" />
64 </form>
65 </div>
66
67 <%+footer%>