From faf2cc54f95987f740a60d1576017f528b15b942 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:58:17 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- tinydns-edit-html.lsp | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'tinydns-edit-html.lsp') diff --git a/tinydns-edit-html.lsp b/tinydns-edit-html.lsp index d251638..2dcfc81 100644 --- a/tinydns-edit-html.lsp +++ b/tinydns-edit-html.lsp @@ -121,7 +121,7 @@ name = "testme"; } - form = form + '
' + entryType.descriptions[i] + '
' + extra + '
'; + form = form + '

' + entryType.descriptions[i] + '

\n
\n' + extra + '\n
'; } form = form + "\n"; entry.empty().append(form); @@ -192,32 +192,30 @@ }); -

Configuration

-

Expert Configuration

-

File Details

-
+

Configuration

+

Expert Configuration

+

File Details

<% htmlviewfunctions.displayitem(form.value.filename) htmlviewfunctions.displayitem(form.value.filesize) htmlviewfunctions.displayitem(form.value.mtime) %> -
-

File Entries

-<% if form.descr then %>

<%= string.gsub(html.html_escape(form.descr), "\n", "
") %>

<% end %> -<% if form.errtxt then %>

<%= string.gsub(html.html_escape(form.errtxt), "\n", "
") %>

<% end %> - +

File Entries

+<% if form.descr then %>

<%= string.gsub(html.html_escape(form.descr), "\n", "
") %>

<% end %> +<% if form.errtxt then %>

<%= string.gsub(html.html_escape(form.errtxt), "\n", "
") %>

<% end %> +
<% for line in string.gmatch(html.html_escape(form.value.filecontent.value), "([^\n]*)\n?") do %> - - - + + + <% end %> -
<%= line %>
<%= line %>
-<% if form.value.filecontent.errtxt then %>

<%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "
") %>

<% end %> + +<% if form.value.filecontent.errtxt then %>

<%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "
") %>

<% end %> <% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> <% htmlviewfunctions.displayformstart(form) %> -

Save and Apply Above Settings

+

Save and Apply Above Settings

<% htmlviewfunctions.displayformend(form) %> -- cgit v1.2.3