summaryrefslogtreecommitdiffstats
path: root/opennhrp-editinterface-html.lsp
blob: 6afab117167a3ab4de15052b6fe87ad9bed0bc9b (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="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery-latest.js"></script>
<script type="text/javascript">
	function enabledisable(){
		if ($("[name='type']").val() == "NHRP Enabled") {
			$("[name='map']").show();
		} else {
			$("[name='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"}
	displayform(form, option, nil, page_info)
%>