diff options
Diffstat (limited to 'interfaces-read-html.lsp')
-rw-r--r-- | interfaces-read-html.lsp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/interfaces-read-html.lsp b/interfaces-read-html.lsp index a0cb44a..ae84b44 100644 --- a/interfaces-read-html.lsp +++ b/interfaces-read-html.lsp @@ -19,7 +19,7 @@ html = require("acf.html") viewlibrary.dispatch_component("status") end %> -<h1>Configured Interfaces</h1> +<% htmlviewfunctions.displayheader(view, page_info) %> <% for i,entry in ipairs(view.value) do local interface = entry.value %> <div class='item'><div class='left'><IMG SRC='<%= html.html_escape(page_info.wwwprefix..page_info.staticdir) %>/tango/16x16/devices/network-wired.png' width='16' height='16'> <%= html.html_escape(interface.name.value) %></div> @@ -55,9 +55,6 @@ end %> </div></div><!-- end .item --> <% end %> -<h1>Restart Networking</h1> -<p class="error">WARNING!!! Restarting networking may cause the ACF web interface to stop functioning. Try refreshing this page after restarting. If that fails, you may have to use terminal access to recover.</p> -<div class='item'><p class='left'>Restart Networking</p> -<div class='right'> -<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/restart?redir=read") %>"><input class="submit" type="submit" name="submit" value="Restart"></form> -</div></div><!-- end .item --> +<% if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("restart") +end %> |