Merge pull request #513 from LuttyYang/master
[project/luci.git] / modules / luci-mod-admin-full / luasrc / view / admin_system / upgrade.htm
1 <%#
2 Copyright 2008 Steven Barth <steven@midlink.org>
3 Copyright 2008-2009 Jo-Philipp Wich <jow@openwrt.org>
4 Licensed to the public under the Apache License 2.0.
5 -%>
6
7 <%+header%>
8
9 <h2 name="content"><%:Flash Firmware%> - <%:Verify%></h2>
10 <p>
11 <%_ The flash image was uploaded.
12 Below is the checksum and file size listed,
13 compare them with the original file to ensure data integrity.<br />
14 Click "Proceed" below to start the flash procedure. %>
15
16 <% if storage > 0 and size > storage then %>
17 <br /><br />
18 <div class="error"><%:It appears that you are trying to
19 flash an image that does not fit into the flash memory, please verify
20 the image file! %></div>
21 <% end %>
22
23 </p>
24
25 <fieldset class="cbi-section">
26 <ul>
27 <li><%:Checksum%>: <code><%=checksum%></code></li>
28 <li><%:Size%>: <%
29 local w = require "luci.tools.webadmin"
30 write(w.byte_format(size))
31
32 if storage > 0 then
33 write(luci.i18n.translatef(
34 " (%s available)",
35 w.byte_format(storage)
36 ))
37 end
38 %></li>
39 <li><% if keep then %>
40 <%:Configuration files will be kept.%>
41 <% else %>
42 <%:Note: Configuration files will be erased.%>
43 <% end %></li>
44 </ul>
45 </fieldset>
46
47 <div class="cbi-page-actions right">
48 <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
49 <input class="cbi-button cbi-button-reset" type="submit" value="<%:Cancel%>" />
50 </form>
51 <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
52 <input type="hidden" name="step" value="2" />
53 <input type="hidden" name="keep" value="<%=keep and "1" or ""%>" />
54 <input class="cbi-button cbi-button-apply" type="submit" value="<%:Proceed%>" />
55 </form>
56 </div>
57
58 <%+footer%>