treewide: always include cbi.js
[project/luci.git] / modules / luci-base / luasrc / view / cbi / header.htm
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 <div>
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 %>></script>
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>