1
0

flashops.htm 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. <%#
  2. Copyright 2008 Steven Barth <steven@midlink.org>
  3. Copyright 2008 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 operations%></h2>
  9. <fieldset class="cbi-section">
  10. <legend><%:Flash new firmware image%></legend>
  11. <% if upgrade_avail then %>
  12. <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
  13. <div class="cbi-section-descr"><%:Upload a sysupgrade-compatible image. %></div>
  14. <div class="cbi-section-node">
  15. <div class="cbi-value cbi-value-last<% if image_invalid then %> cbi-value-error<% end %>">
  16. <label class="cbi-value-title" for="image"><%:Image%>:</label>
  17. <div class="cbi-value-field">
  18. <input type="file" name="image" id="image" />
  19. <input type="submit" class="cbi-button cbi-input-apply" value="<%:Flash image...%>" />
  20. </div>
  21. </div>
  22. </div>
  23. <% if image_invalid then %>
  24. <div class="cbi-section-error"><%:The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform. %></div>
  25. <% end %>
  26. </form>
  27. <% else %>
  28. <div class="cbi-section-descr"><%:Sorry, there is no sysupgrade support present; a new firmware image must be flashed manually. Please refer to the wiki for device specific install instructions.%></div>
  29. <% end %>
  30. </fieldset>
  31. <%+footer%>