summaryrefslogtreecommitdiffstats
path: root/dnsmasq-config-html.lsp
blob: d7fb32f38cafd437ac32c459e03372e240c677f8 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<% local form, viewlibrary, page_info, session = ... 
require("viewfunctions")
%>

<% displaycommandresults({"startstop"}, session) %>

<% if viewlibrary and viewlibrary.dispatch_component then
	viewlibrary.dispatch_component("status")
end %>

<H1>Config</H1>
<%
	form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
	displayformstart(form)
%>
</DL>
<H2>General Parameters</H2>
<DL>
<%
	displayformitem(form.value.interface, "interface")
	displayformitem(form.value.listen_address, "listen_address")
	displayformitem(form.value.domain, "domain")
%>
</DL>
<H2>DNS Parameters</H2>
<DL>
<%
	displayformitem(form.value.mx_host, "mx_host")
%>
</DL>

<H2>DHCP Parameters</H2>
<DL>
<%
	displayformitem(form.value.dhcp_range, "dhcp_range")
	displayformitem(form.value.no_dhcp_interface, "no_dhcp_interface")
	displayformitem(form.value.dhcp_host, "dhcp_host")
	displayformitem(form.value.dhcp_option, "dhcp_option")
%>
</DL>

<H2>Save Changes</H2>
<DL>
<%
	displayformend(form)
%>
</DL>

<% if viewlibrary and viewlibrary.dispatch_component then
	viewlibrary.dispatch_component("startstop")
end %>