upgrade.htm 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <%+header%>
  8. <h2 name="content"><%:Flash Firmware%> - <%:Verify%></h2>
  9. <p>
  10. <%_ The flash image was uploaded.
  11. Below is the checksum and file size listed,
  12. compare them with the original file to ensure data integrity.<br />
  13. Click "Proceed" below to start the flash procedure. %>
  14. <% if storage > 0 and size > storage then %>
  15. <br /><br />
  16. <div class="error"><%:It appears that you are trying to
  17. flash an image that does not fit into the flash memory, please verify
  18. the image file! %></div>
  19. <% end %>
  20. </p>
  21. <fieldset class="cbi-section">
  22. <ul>
  23. <li><%:Checksum%>: <code><%=checksum%></code></li>
  24. <li><%:Size%>: <%
  25. local w = require "luci.tools.webadmin"
  26. write(w.byte_format(size))
  27. if storage > 0 then
  28. write(luci.i18n.translatef(
  29. " (%s available)",
  30. w.byte_format(storage)
  31. ))
  32. end
  33. %></li>
  34. </ul>
  35. </fieldset>
  36. <div class="cbi-page-actions right">
  37. <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
  38. <input class="cbi-button cbi-button-reset" type="submit" value="<%:Cancel%>" />
  39. </form>
  40. <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
  41. <input type="hidden" name="step" value="2" />
  42. <input class="cbi-button cbi-button-apply" type="submit" value="<%:Proceed%>" />
  43. </form>
  44. </div>
  45. <%+footer%>