summaryrefslogtreecommitdiffstats
path: root/dhcp-editspc-html.lsp
blob: a4397d96d4a25d3701175466309287a86c720e7b (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
<% 
   local form = ... 
   local option = form.option;
   local errcode = form.errcode
%>
<h1>DHCPd - Advanced Global Configuration</h1>

<form name="myform" action="<% io.write(option.script .. option.prefix ..  
                 option.controller .. "/" .. option.action .. option.extra) %>" method="POST">
                 
<pre style="color: #ff2020;"><% io.write( form.errcode.msg ) %></pre>

<h2>DHCPd - Dynamic Hosts</h2>
<p>
Enter dynamic hosts data, one per line <i>(e.g. hostname;00:11:22:33:44:55)</i>
</p>
<textarea name="dynamic"><% io.write( form.value.dynamic ) %></textarea>

<h2>DHCPd - Pre Main Configuration</h2>
<p>
These fields below are copied into the final dhcpd.conf on configuration generation without any validation check. Do not use
them unless you know what you are doing.
</p>
<textarea name="preconfig"><% io.write(form.value.preconfig) %></textarea>

<h2>DHCPd - Post Main Configuration</h2>
<textarea name="postconfig"><% io.write(form.value.postconfig) %></textarea>

<h2>Submit/Cancel</h2>
<DL>
<dt>Submit above settings</dt>
<dd><input type="submit" name="cmd" value="update" class="submit"></dd>

<dt>Cancel and go back</dt>
<dd><form action="<% io.write(option.script .. option.prefix .. option.controller .. "/home") %>" method="POST">
<input type=submit name="cmd" value="back" class="submit"></form></dd>
</form>
</DL>