remote_update.htm 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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"></label>
  32. <label for="cb_keepcfg"><%:Keep configuration%></label><br />
  33. <input type="checkbox" class="cbi-input-checkbox" name="verify" value="1" checked="checked" id="cb_verify" />
  34. <label for="cb_verify"></label>
  35. <label for="cb_verify"><%:Verify downloaded images%></label><br /><br />
  36. <input type="submit" class="cbi-button cbi-button-apply" value="<%:Confirm Upgrade%>" />
  37. </form></p>
  38. <% end %>
  39. <%+footer%>