diff --git a/dnscache-config-html.lsp b/dnscache-config-html.lsp index c53da2591b32bd9cfbc3e6c1a2649e13f098a584..2fdd23b32c97fa98ef9a4eb0d696ee92d2d17919 100644 --- a/dnscache-config-html.lsp +++ b/dnscache-config-html.lsp @@ -6,8 +6,4 @@ htmlviewfunctions = require("htmlviewfunctions") viewlibrary.dispatch_component("status") end %> -
Action | Domain | |
---|---|---|
- <% io.write(html.link{value = "editdomain?domain=" .. domain.."&redir="..page_info.orig_action, label="Edit " }) %> - <% if domain ~= "@" then - io.write(html.link{value = "deletedomain?submit=true&domain=" .. domain, label="Delete " }) - end %> + <% + domain.value = d + htmlviewfunctions.displayitem(cfe({type="link", value={domain=domain, redir=redir}, label="", option="Edit", action="editdomain"}), page_info, -1) + if d ~= "@" then + htmlviewfunctions.displayitem(cfe({type="form", value={domain=domain}, label="", option="Delete", action="deletedomain"}), page_info, -1) + end + %> | -<%= html.html_escape(domain) %> | +<%= html.html_escape(d) %> |