2
0

header.htm 703 B

123456789101112131415161718192021
  1. <%+header%>
  2. <% local has_writeable_map = false %>
  3. <form method="post" name="cbi" action="<%=REQUEST_URI%>" enctype="multipart/form-data" onreset="return cbi_validate_reset(this)" onsubmit="return cbi_validate_form(this, '<%:Some fields are invalid, cannot save values!%>')"<%=
  4. attr("data-strings", luci.util.serialize_json({
  5. label = {
  6. choose = translate('-- Please choose --'),
  7. custom = translate('-- custom --'),
  8. },
  9. path = {
  10. resource = resource,
  11. browser = url("admin/filebrowser")
  12. }
  13. }))
  14. %>>
  15. <div>
  16. <input type="hidden" name="token" value="<%=token%>" />
  17. <input type="hidden" name="cbi.submit" value="1" />
  18. <input type="submit" value="<%:Save%>" class="hidden" />
  19. </div>