summaryrefslogtreecommitdiffstats
path: root/tinydns-edit-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-02-03 21:58:17 +0000
committerTed Trask <ttrask01@yahoo.com>2014-02-03 21:58:17 +0000
commitfaf2cc54f95987f740a60d1576017f528b15b942 (patch)
treeb8f12e9a41d95966525d9d49f1875e1a3eea9d12 /tinydns-edit-html.lsp
parentbce30f3807d9c8b31842b156f23bcfa42feb5a3d (diff)
downloadacf-tinydns-faf2cc54f95987f740a60d1576017f528b15b942.tar.bz2
acf-tinydns-faf2cc54f95987f740a60d1576017f528b15b942.tar.xz
Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags
Diffstat (limited to 'tinydns-edit-html.lsp')
-rw-r--r--tinydns-edit-html.lsp30
1 files changed, 14 insertions, 16 deletions
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 + '<dt>' + entryType.descriptions[i] + '</dt><dd><input type="text" value="' + value + '" name="' + name + '">' + extra + '</dd>';
+ form = form + '<div class='item'><p class='left'>' + entryType.descriptions[i] + '</p>\n<div class='right'>\n<input type="text" value="' + value + '" name="' + name + '">' + extra + '\n</div></div><!-- end .item -->';
}
form = form + "\n</dl>";
entry.empty().append(form);
@@ -192,32 +192,30 @@
});
</script>
-<H1>Configuration</H1>
-<H2>Expert Configuration</H2>
-<H3>File Details</H3>
-<DL>
+<h1>Configuration</h1>
+<h2>Expert Configuration</h2>
+<h3>File Details</h3>
<%
htmlviewfunctions.displayitem(form.value.filename)
htmlviewfunctions.displayitem(form.value.filesize)
htmlviewfunctions.displayitem(form.value.mtime)
%>
-</DL>
-<H3>File Entries</H3>
-<% if form.descr then %><P CLASS='descr'><%= string.gsub(html.html_escape(form.descr), "\n", "<BR>") %></P><% end %>
-<% if form.errtxt then %><P CLASS='error'><%= string.gsub(html.html_escape(form.errtxt), "\n", "<BR>") %></P><% end %>
-<TABLE id="entries">
+<h3>File Entries</h3>
+<% if form.descr then %><p class='descr'><%= string.gsub(html.html_escape(form.descr), "\n", "<br/>") %></p><% end %>
+<% if form.errtxt then %><p class='error'><%= string.gsub(html.html_escape(form.errtxt), "\n", "<br/>") %></p><% end %>
+<table id="entries">
<% for line in string.gmatch(html.html_escape(form.value.filecontent.value), "([^\n]*)\n?") do %>
- <TR>
- <TD><%= line %></TD>
- </TR>
+ <tr>
+ <td><%= line %></td>
+ </tr>
<% end %>
-</TABLE>
-<% if form.value.filecontent.errtxt then %><P CLASS='error'><%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "<BR>") %></P><% end %>
+</table>
+<% if form.value.filecontent.errtxt then %><p class='error'><%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "<br/>") %></p><% end %>
<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>
<% htmlviewfunctions.displayformstart(form) %>
<input type="hidden" name="filename" value="<%= html.html_escape(form.value.filename.value) %>">
<input type="hidden" name="filecontent" value="<%= html.html_escape(form.value.filecontent.value) %>">
-<H2>Save and Apply Above Settings</H2>
+<h2>Save and Apply Above Settings</h2>
<% htmlviewfunctions.displayformend(form) %>