diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-05-30 18:37:19 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-05-30 18:37:19 +0000 |
commit | a280c3b1faa2847b6d4f850a55d0cd4ea8453283 (patch) | |
tree | 762cd65291ba792b83e462f746e41b7381bb9d66 /interfaces-update-html.lsp | |
parent | 6c63347a6ae2f25de2bf8cf9aea93ea31a786418 (diff) | |
download | acf-alpine-baselayout-a280c3b1faa2847b6d4f850a55d0cd4ea8453283.tar.bz2 acf-alpine-baselayout-a280c3b1faa2847b6d4f850a55d0cd4ea8453283.tar.xz |
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
Diffstat (limited to 'interfaces-update-html.lsp')
-rw-r--r-- | interfaces-update-html.lsp | 38 |
1 files changed, 5 insertions, 33 deletions
diff --git a/interfaces-update-html.lsp b/interfaces-update-html.lsp index 5c33872..453afe9 100644 --- a/interfaces-update-html.lsp +++ b/interfaces-update-html.lsp @@ -9,37 +9,9 @@ io.write("</span>") --]] ?> -<h1>Update Interface <?= form.value.name.value ?></h1> - -<form action="<?= form.option.script .. "/" .. form.option.prefix .. - form.option.controller .. "/" .. form.option.action .. - form.option.extra ?>" method="POST"> - -<DL> -<? - --- We redefine the list of tags from the model (iface_tags) because --- the VIEW can choose the order to display the data. The Controller --- does not care what order the data is presented. - --- In this case, we don't show "name" - since its already known -local tags = { "comment", "method", "address", "netmask", "gateway", - "hostname", "provider", "pre-up", "up", "down", "post-down", "cmd" } -local myform = form.value -displayinfo(myform,tags) --- Add the 'name' filed (but don't show it because it's {type='hidden'} -io.write(html.form[myform.name.type](myform.name)) -?> -</DL> - -<H2>Other actions</H2> -<DL> -<? -local tags = { "cmddelete", } -local myform = form.value -displayinfo(myform,tags) +<h1><?= form.label ?> - <?= form.value.name.value ?></h1> +<? + form.value.name.contenteditable = false + local order = {"name", "comment", "auto", "family", "method", "pre-up", "up", "down", "post-down"} + displayform(form, order) ?> -</DL> - -</form> - |