mmupload.htm 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <%#
  2. LuCI - Lua Configuration Interface
  3. Copyright 2015 Mikeqin <Fengling.Qin@gmail.com>
  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. <%+header%>
  11. <h2><a id="content" name="content"><%:MM upgrade%></a></h2>
  12. <fieldset class="cbi-section">
  13. <legend><%:Flash new MM firmware image%></legend>
  14. <% if mm_upgrade_avail then %>
  15. <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
  16. <div class="cbi-section-descr"><%:Upload a mm.mcs here to replace the original MM firmware. %><span style="color:red"><b><%:Caution: Only for professional users!!!%></b></span></div>
  17. <div class="cbi-section-node">
  18. <div class="cbi-value cbi-value-last<% if mm_image_invalid then %> cbi-value-error<% end %>">
  19. <label class="cbi-value-title" for="image"><%:MM firmware%>:</label>
  20. <div class="cbi-value-field">
  21. <input type="file" name="image" id="image" />
  22. <input type="submit" class="cbi-button cbi-input-apply" value="<%:Upload%>" />
  23. </div>
  24. </div>
  25. </div>
  26. <% if mm_image_invalid then %>
  27. <div class="cbi-section-error"><%:The uploaded firmware is invalid. Make sure that you choose the right firmware for your machine. %></div>
  28. <% end %>
  29. </form>
  30. <% else %>
  31. <div class="cbi-section-descr"><%:Sorry, The firmware does not support mm upgrade, please upgrade your firmware or change another platform.%></div>
  32. <% end %>
  33. </fieldset>
  34. <%+footer%>