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