summaryrefslogtreecommitdiffstats
path: root/interfaces-read-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces-read-html.lsp')
-rw-r--r--interfaces-read-html.lsp16
1 files changed, 7 insertions, 9 deletions
diff --git a/interfaces-read-html.lsp b/interfaces-read-html.lsp
index ac910a9..f3279a2 100644
--- a/interfaces-read-html.lsp
+++ b/interfaces-read-html.lsp
@@ -1,4 +1,4 @@
-<% local view, viewlibrary, pageinfo, session = ...
+<% local view, viewlibrary, page_info, session = ...
require("viewfunctions")
%>
<%
@@ -19,7 +19,7 @@ io.write("</span>")
<% end %>
<% end %>
-<% displaycommandresults({"delete", "ifup", "ifdown"}, session) %>
+<% displaycommandresults({"delete", "ifup", "ifdown", "restart"}, session) %>
<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("status")
@@ -59,10 +59,8 @@ end %>
</DD>
</DL>
-<%
---[[ DEBUG INFORMATION
-io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
-io.write(html.cfe_unpack(form))
-io.write("</span>")
---]]
-%>
+<H1>Restart Networking</H1>
+<DL>
+<DT>Restart Networking</DT>
+<DD><form action="<%= page_info.script .. page_info.prefix .. page_info.controller .. "/restart" %>"><input class="submit" type="submit" value="Restart"></form></DD>
+</DL>