upgrade.htm 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. $Id$
  10. -%>
  11. <%+header%>
  12. <h2><%:Upgrade firmware%></h2>
  13. <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
  14. <p>
  15. <%:You can manually upgrade your firmware here.%>
  16. </p>
  17. <% if bad_image then %>
  18. <p class="error"><%:The provided firmware image is not valid for this device.%></p>
  19. <% end %>
  20. <div class="cbi-section-node">
  21. <div class="cbi-value">
  22. <label class="cbi-value-title">
  23. <%:Firmware image%>
  24. </label>
  25. <div class="cbi-value-field">
  26. <input class="cbi-input-file" type="file" name="image" />
  27. </div>
  28. </div>
  29. <div class="cbi-value cbi-value-last">
  30. <label class="cbi-value-title">
  31. <%:Keep settings%>
  32. </label>
  33. <div class="cbi-value-field">
  34. <input id="keepcfg" class="cbi-input-checkbox" type="checkbox" name="keepcfg" value="1" checked="checked" />
  35. <label for="keepcfg"></label>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="cbi-page-actions right">
  40. <input type="hidden" name="step" value="2" />
  41. <input class="cbi-button cbi-button-apply" type="submit" value="<%:Upload image%>" />
  42. </div>
  43. </form>
  44. <%+footer%>