From accdc5b2ac969092e0a21bef5cff679875d2430c Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:26:16 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- dhcp-home-html.lsp | 13 +++++------ dhcp-listfiles-html.lsp | 48 +++++++++++++++++++++++++++------------- dhcp-listhosts-html.lsp | 56 +++++++++++++++++++++++++++++++---------------- dhcp-listsubnets-html.lsp | 56 +++++++++++++++++++++++++++++++---------------- 4 files changed, 113 insertions(+), 60 deletions(-) diff --git a/dhcp-home-html.lsp b/dhcp-home-html.lsp index 0cfc404..39be215 100644 --- a/dhcp-home-html.lsp +++ b/dhcp-home-html.lsp @@ -8,15 +8,14 @@ viewlibrary.dispatch_component("status") end %> -

Global Settings

- -
-
Edit global settings
-
" method="POST"> +

Global Settings

+

Edit global settings

+
+" method="post"> -
-
+ + <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("listsubnets") diff --git a/dhcp-listfiles-html.lsp b/dhcp-listfiles-html.lsp index c733bfd..3b9b2fe 100644 --- a/dhcp-listfiles-html.lsp +++ b/dhcp-listfiles-html.lsp @@ -3,6 +3,24 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"expert"}, session) %> <% if viewlibrary and viewlibrary.dispatch_component then @@ -10,20 +28,20 @@ html = require("acf.html") end %>

<%= html.html_escape(data.label) %>

-
- - - - - - +
FileSizeLast Modified
+ + + + + + <% for i,file in ipairs(data.value) do %> - - - - - + + + + + <% end %> -
FileSizeLast Modified
- <%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %> - <%= html.html_escape(file.filesize) %><%= html.html_escape(file.mtime) %>
+ <%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %> + <%= html.html_escape(file.filesize) %><%= html.html_escape(file.mtime) %>
+ diff --git a/dhcp-listhosts-html.lsp b/dhcp-listhosts-html.lsp index 4c4cde8..871f92e 100644 --- a/dhcp-listhosts-html.lsp +++ b/dhcp-listhosts-html.lsp @@ -1,31 +1,49 @@ <% local view, viewlibrary, page_info, session = ... %> <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> + -<% htmlviewfunctions.displaycommandresults({"edithost", "delhost", "createhost"}, session) %> + + + -

Host Declarations

-
- - - - - +<% htmlviewfunctions.displaycommandresults({"edithost", "delhost", "createhost"}, session) %> + +

Host Declarations

+
ActionHost
+ + + + + <% for i,host in ipairs(view.value) do %> - - + - - + + + <% end %> -
ActionHost
+
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/edithost?host="..host.."&redir="..page_info.orig_action, label="Edit "} %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delhost?submit=true&host="..host, label="Delete "} %> - <%= html.html_escape(host) %>
<%= html.html_escape(host) %>
+ -
Add new host
-
" method="POST"> +

Add new host

+
+" method="post"> - -
-
+ + + diff --git a/dhcp-listsubnets-html.lsp b/dhcp-listsubnets-html.lsp index cfefa6b..00bd1ef 100644 --- a/dhcp-listsubnets-html.lsp +++ b/dhcp-listsubnets-html.lsp @@ -2,30 +2,48 @@ <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> -<% htmlviewfunctions.displaycommandresults({"editsubnet", "delsubnet", "createsubnet"}, session) %> + + + -

Subnet Declarations

+ + +<% htmlviewfunctions.displaycommandresults({"editsubnet", "delsubnet", "createsubnet"}, session) %> -
- - - - - +

Subnet Declarations

+
ActionSubnet
+ + + + + <% for i,subnet in ipairs(view.value) do %> - - + - - + + + <% end %> -
ActionSubnet
+
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editsubnet?subnet="..subnet.."&redir="..page_info.orig_action, label="Edit "} %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delsubnet?submit=true&subnet="..subnet, label="Delete "} %> - <%= html.html_escape(subnet) %>
<%= html.html_escape(subnet) %>
+ -
Add new subnet
-
" method="POST"> +

Add new subnet

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