From a280c3b1faa2847b6d4f850a55d0cd4ea8453283 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 30 May 2008 18:37:19 +0000 Subject: Updated interfaces to use new cfe model, add more iface families, add more flexibility to editing, show ip status, bring up/down interfaces, and general cleanup. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1191 ab2d0c66-481e-0410-8bed-d214d4d58bed --- interfaces-read-html.lsp | 80 +++++++++++++++++++++++++++++------------------- 1 file changed, 49 insertions(+), 31 deletions(-) (limited to 'interfaces-read-html.lsp') diff --git a/interfaces-read-html.lsp b/interfaces-read-html.lsp index 505cbf6..33ab30f 100644 --- a/interfaces-read-html.lsp +++ b/interfaces-read-html.lsp @@ -1,47 +1,67 @@ - DEBUGGING

DEBUG INFO: CFE

") -io.write(html.cfe_unpack(form)) +io.write(html.cfe_unpack(view)) io.write("
") --]] ?> -

SYSTEM INFO

+ + + > + ") ?> + "..option.errtxt) end ?> + + + + + +

Command Result

- +
+ + + -

Configured interfaces

+

Configured interfaces

- " .. (myform.name.value or '') .. "
") - io.write("") --- io.write("") + +
+
" .. (myform.name.value or '') .. "
- local tags = {"method", "address", "netmask", "gateway", "provider", "hostname", "pre-up", "up", "down", "post-down", "comment", } - for k1,v1 in pairs(tags) do - if (myform[v1]['value'] ~= "") then - io.write("") - io.write("") - end + ") - end - -end -io.write("") -?> + end ?> + + + Edit + + Delete + + ifup + + ifdown + + +
" .. myform[v1]['label'] .. "" .. string.gsub(myform[v1]['value'], "\n", "
") .. "
+ +
") --]] ?> - - -- cgit v1.2.3