luci-base: support hiding the "Back to Overview" button in cbi maps
[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                 <script type="text/javascript" src="<%=resource%>/cbi.js"<%=
5                         attr("data-strings", luci.util.serialize_json({
6                                 label = {
7                                         choose = translate('-- Please choose --'),
8                                         custom = translate('-- custom --'),
9                                 },
10                                 path = {
11                                         resource = resource,
12                                         browser  = url("admin/filebrowser")
13                                 }
14                         }))
15                 %>></script>
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>