1
0

header.htm 663 B

123456789101112131415161718
  1. <%+header%>
  2. <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!%>')"<%=
  3. attr("data-strings", luci.util.serialize_json({
  4. label = {
  5. choose = translate('-- Please choose --'),
  6. custom = translate('-- custom --'),
  7. },
  8. path = {
  9. resource = resource,
  10. browser = url("admin/filebrowser")
  11. }
  12. }))
  13. %>>
  14. <div>
  15. <input type="hidden" name="token" value="<%=token%>" />
  16. <input type="hidden" name="cbi.submit" value="1" />
  17. <input type="submit" value="<%:Save%>" class="hidden" />
  18. </div>