diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-03-04 02:41:32 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-03-04 02:41:32 +0000 |
commit | f9780f645bc94f2f79fc4e266e671d15232d4b9d (patch) | |
tree | ba25e6d23f9a89891d4a01c5d1ffe4c59718c914 /interfaces-read-html.lsp | |
parent | b0f4fadb7b62297b6dbd574b2a7d8eee0f990eb4 (diff) | |
download | acf-alpine-baselayout-f9780f645bc94f2f79fc4e266e671d15232d4b9d.tar.bz2 acf-alpine-baselayout-f9780f645bc94f2f79fc4e266e671d15232d4b9d.tar.xz |
Change HTML views to use htmlviewfunctions.displayheader
Modified some models to change labels
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 %> |