From 2659317883b211aba20dbb256eaf108eac8eda41 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Thu, 20 Dec 2007 14:24:00 +0000 Subject: Changed view-files to reflect modificatsion in the new css git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@441 ab2d0c66-481e-0410-8bed-d214d4d58bed --- dhcp-createnet-html.lsp | 69 ++++++++++++++++++++-------- dhcp-editnet-html.lsp | 86 +++++++++++++++++------------------ dhcp-editspc-html.lsp | 23 ++++++---- dhcp-home-html.lsp | 116 ++++++++++++++++++++++++------------------------ dhcp-settings-html.lsp | 26 ++++++++--- dhcp-view-html.lsp | 10 +---- 6 files changed, 187 insertions(+), 143 deletions(-) diff --git a/dhcp-createnet-html.lsp b/dhcp-createnet-html.lsp index fd80622..be22e05 100644 --- a/dhcp-createnet-html.lsp +++ b/dhcp-createnet-html.lsp @@ -8,26 +8,51 @@ 0 then - io.write("
" .. form.errcode.msg .. "

") + io.write("

" .. form.errcode.msg .. "

") end ?>
" method="POST"> - - - - - - - - - - - - - - -
Name:
Subnet:
Netmask:
Gateway:
DNS Server 1:
DNS Server 2:
Default Lease Time:
Maximum Lease Time:
Domain Name:
WPAD:
Lease Range Start:
Lease Range End:
Unknown Clients + +
Subnet
+
+ +
Netmask
+
+ +
Gateway
+
+ +
DNS Server 1
+
+ +
DNS Server 2
+
+ +
Default Lease Time
+
+ +
Maximum Lease Time
+
+ +
Domain Name
+
+ +
WPAD
+
+ +
Lease Range Start
+
+ +
Lease Range End
+
+ +
Unknown Clients
+
method="POST"> -
+ + +
Submit above settings
+
+ + + +
Cancel and go back
+
method="POST"> +
+ diff --git a/dhcp-editnet-html.lsp b/dhcp-editnet-html.lsp index 2287bcb..d5cf0cf 100644 --- a/dhcp-editnet-html.lsp +++ b/dhcp-editnet-html.lsp @@ -20,7 +20,7 @@ 0 then - io.write("
" .. errcode.msg .. "

") + io.write("

" .. errcode.msg .. "

") end ?> @@ -28,19 +28,45 @@ option.controller .. "/" .. option.action .. option.extra) ?>" method="POST"> - - - - - - - - - - - - - - " method="POST"> -
Subnet:
Netmask:
Gateway:
DNS Server 1:
DNS Server 2:
Default Lease Time:
Maximum Lease Time:
Domain Name:
WPAD:
Lease Range Start:
Lease Range End:
Unknown Clients + +
Netmask
+
+ +
Gateway
+
+ +
DNS Server 1
+
+ +
DNS Server 2
+
+ +
Default Lease Time
+
+ +
Maximum Lease Time
+
+ +
Domain Name
+
+ +
WPAD
+
+ +
Lease Range Start
+
+ +
Lease Range End
+
+ +
Unknown Clients
+
- -

-

Subnet: Static Hosts

-Enter one host per line in the format: hostname;ip;mac;comment
- - - - -
Hostname[a-z], [0-9], -
IPxxx.xxx.xxx.xxx
MACXX:XX:XX:XX:XX:XX
- - -

- - -

Subnet: Advanced Configuration

- Activate Advanced Configuration - use with caution!

- - - -
-
-
" method="POST"> - - -
" method="POST"> -
+ +
" method="POST"> + diff --git a/dhcp-editspc-html.lsp b/dhcp-editspc-html.lsp index 922fe24..a8197d7 100644 --- a/dhcp-editspc-html.lsp +++ b/dhcp-editspc-html.lsp @@ -11,18 +11,25 @@

DHCPd - Dynamic Hosts

-
+

DHCPd - Pre Main Configuration

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. -
+

DHCPd - Post Main Configuration

- - -
-
" method="POST"> - -
+ + +

Submit/Cancel

+ +
Submit above settings
+
+ + + +
Cancel and go back
+
" method="POST"> +
+ diff --git a/dhcp-home-html.lsp b/dhcp-home-html.lsp index c4ad154..da6d8d5 100644 --- a/dhcp-home-html.lsp +++ b/dhcp-home-html.lsp @@ -2,75 +2,73 @@ local form = ... local data = form.option ?> +

Home

-

DHCPd - Status

- is:

- -

DHCPd - Daemon Control

- - - - - - - - -
-

+

System info

-

DHCPd - Generate Configuration File

- -" method="POST"> - - -
-" .. form.genmsg .. "" ) end ?>
+
Program version
+
-

DHCPd - Global Settings

- -" method="POST"> - - -

- -

DHCPd - Edit Subnet

- -" method="POST"> - - - -
Network to modify - + + +

+ + +

Change/Generate settings

+ +

Global

+ +
Edit global settings
+
" method="POST"> + +
+ + +
Global Config Pre/Post Code
+
" method="POST"> + +
+ +

Subnet declarations

+ +
Edit subnet
+
" method="POST"> +

- -

DHCPd - Add New Subnet

- -" method="POST"> - - - - -
-
+ + -

DHCPd - Global Config Pre/Post Code

- -" method="POST"> - - -

+
Add new subnet
+
" method="POST"> + +
+ +

Generate config

+ +
Generate Configuration File
+
" method="POST"> +
+" .. form.genmsg .. "

" ) end ?>
+ +

View files

-

DHCPd - View Files

-" method="POST"> - - +
View dhcpd.conf
+
+ +
View dhcpd.leases
+
-

+ diff --git a/dhcp-settings-html.lsp b/dhcp-settings-html.lsp index 73b377d..f8eb173 100644 --- a/dhcp-settings-html.lsp +++ b/dhcp-settings-html.lsp @@ -14,11 +14,23 @@
" method="POST"> - - - - - -
Default Lease Time:
Maximum Lease Time:
Domain Name:
method="POST"> -
+ +
Default Lease Time
+
+ +
Maximum Lease Time
+
+ +
Domain Name
+
+ +
Submit above settings
+
+ + + +
Cancel and go back
+
method="POST"> +
+ diff --git a/dhcp-view-html.lsp b/dhcp-view-html.lsp index bc188c1..9cf116e 100644 --- a/dhcp-view-html.lsp +++ b/dhcp-view-html.lsp @@ -5,14 +5,8 @@ ?>

View

- - - -
- -
+
" method="POST"> - +
-
-- cgit v1.2.3