66f6457626980b158a8879e019e3c95f4632559a
[project/luci.git] / modules / failsafe / luasrc / view / failsafe / 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 Copyright 2012 Daniel Golle <dgolle@allnet.de>
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13 $Id$
14
15 -%>
16
17 <%+header%>
18
19 <h2><a id="content" name="content"><%:Flash Firmware%> - <%:Verify%></a></h2>
20 <p>
21         <%_ The flash image was uploaded.
22                 Below is the checksum and file size listed,
23                 compare them with the original file to ensure data integrity.<br />
24                 Click "Proceed" below to start the flash procedure. %>
25
26         <% if storage > 0 and size > storage then %>
27                 <br /><br />
28                 <div class="error"><%:It appears that you try to
29                         flash an image that does not fit into the flash memory, please verify
30                         the image file! %></div>
31         <% end %>
32
33 </p>
34
35 <fieldset class="cbi-section">
36         <ul>
37                 <li><%:Checksum%>: <code><%=checksum%></code></li>
38                 <li><%:Size%>: <%
39                         local w = require "luci.tools.webadmin"
40                         write(w.byte_format(size))
41
42                         if storage > 0 then
43                                 write(luci.i18n.translatef(
44                                         " (%s available)",
45                                         w.byte_format(storage)
46                                 ))
47                         end
48                 %></li>
49         </ul>
50 </fieldset>
51
52 <div class="cbi-page-actions right">
53         <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
54                 <input class="cbi-button cbi-button-reset" type="submit" value="<%:Cancel%>" />
55         </form>
56         <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
57                 <input type="hidden" name="step" value="2" />
58                 <input class="cbi-button cbi-button-apply" type="submit" value="<%:Proceed%>" />
59         </form>
60 </div>
61
62 <%+footer%>