summaryrefslogtreecommitdiffstats
path: root/opennhrp-editinterface-html.lsp
blob: 67898e78be167add89084085f5e2d83b9e40351a (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
<% local form, viewlibrary, page_info = ... 
require("viewfunctions")
%>

<script type="text/javascript" src="/js/jquery-latest.js"></script>
<script type="text/javascript">
	function enabledisable(){
		if ($("[name='type']").val() == "NHRP Enabled") {
			$("[name='map']").attr("disabled", "");
		} else {
			$("[name='map']").attr("disabled", "disabled");
		}
	}
	$(function(){
		$("[name='type']").change(enabledisable);
		enabledisable();
	});
</script>

<H1><%= form.label %></H1>
<%
	form.value.interface.contenteditable = false
	local option = {"interface", "type", "map"}
	displayform(form, option, nil, page_info)
%>