remote_update.htm 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <%#
  2. Copyright 2008 Steven Barth <steven@midlink.org>
  3. Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
  4. Licensed to the public under the Apache License 2.0.
  5. -%>
  6. <%+header%>
  7. <h2><%:Freifunk Remote Update%></h2>
  8. <p><%:Check for new firmware versions and perform automatic updates.%></p>
  9. <% if update then %>
  10. <% if update.info then %>
  11. <strong><%:Update available!%></strong>
  12. <br /><br />
  13. <pre><%=update.info%></pre><br />
  14. <% else %>
  15. <strong><%:The installed firmware is the most recent version.%></strong>
  16. <br /><br />
  17. <% end %>
  18. <p>
  19. <form method="post" action="" class="inline">
  20. <input type="hidden" name="flash" value="1" />
  21. <input type="submit" class="cbi-button cbi-button-apply" value="<%:Start Upgrade%>" />
  22. </form>
  23. </p>
  24. <% elseif confirm then %>
  25. <strong><%:Update Settings%></strong>
  26. <br /><br />
  27. <p><form method="post" action="" class="inline">
  28. <input type="hidden" name="flash" value="1" />
  29. <input type="hidden" name="confirm" value="1" />
  30. <input type="checkbox" class="cbi-input-checkbox" name="keepcfg" value="1" checked="checked" id="cb_keepcfg" />
  31. <label for="cb_keepcfg"><%:Keep configuration%></label><br />
  32. <input type="checkbox" class="cbi-input-checkbox" name="verify" value="1" checked="checked" id="cb_verify" />
  33. <label for="cb_verify"><%:Verify downloaded images%></label><br /><br />
  34. <input type="submit" class="cbi-button cbi-button-apply" value="<%:Confirm Upgrade%>" />
  35. </form></p>
  36. <% end %>
  37. <%+footer%>