upgrade.html 1.4 KB

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