blob: 6caa8d17f083edd35193b9d60501e1ea2f8ecc4f (
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
|
<% local form, viewlibrary, page_info = ...
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">
function enabledisable(){
if ($("[name='type']").val() == "NHRP Enabled") {
$("[name='map']").show();
$("[name='dynamic-map']").show();
} else {
$("[name='map']").hide();
$("[name='dynamic-map']").hide();
}
}
$(function(){
$("[name='type']").change(enabledisable);
enabledisable();
});
</script>
<H1><%= html.html_escape(form.label) %></H1>
<%
form.value.interface.readonly = true
local option = {"interface", "type", "map"}
htmlviewfunctions.displayform(form, option, nil, page_info)
%>
|