blob: 71ab3225765a394ad371e58387f472c271969df6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<% local form, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
document.write('<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery-latest.js"><\/script>');
}
</script>
<script type="text/javascript">
$(document).ready(function() {
$("[id=<%= page_info.action %>]").submit(function(event){
if ($(this).find("#notifydevices").is(":checked")) {
return confirm("Are you sure you want to notify affected devices? This might cause a reboot.");
}
return true;
});
});
</script>
<% htmlviewfunctions.displayitem(form, page_info) %>
<%
form.enctype = "multipart/form-data"
form.value.bulkdevicedata.type="file"
htmlviewfunctions.displayitem(form, page_info)
%>
<%
local viewtype = cfe({type="hidden", value="stream"})
htmlviewfunctions.displayitem(cfe({type="form", value={viewtype=viewtype}, label="Bulk Dump Devices", option="Dump", action="bulkdumpdevices"}), page_info)
%>
|