diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-07-08 13:27:06 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-07-08 13:27:06 +0000 |
commit | d6eaceb7368639a4d634b06b2e1f09498c81e1e4 (patch) | |
tree | a8b6c9286c95eeb331620b83842a9e186d90dd70 /tinydns-edit-html.lsp | |
parent | 450023d50615816c7db2d4abfaface18132a1c47 (diff) | |
download | acf-tinydns-d6eaceb7368639a4d634b06b2e1f09498c81e1e4.tar.bz2 acf-tinydns-d6eaceb7368639a4d634b06b2e1f09498c81e1e4.tar.xz |
Modified tinydns to use controllerfunctions, modelfunctions, common lsp files, and new view without action functionality.
git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1290 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'tinydns-edit-html.lsp')
-rw-r--r-- | tinydns-edit-html.lsp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tinydns-edit-html.lsp b/tinydns-edit-html.lsp index 92cdd21..44cf642 100644 --- a/tinydns-edit-html.lsp +++ b/tinydns-edit-html.lsp @@ -1,5 +1,6 @@ -<? local form, viewlibrary = ... ?> +<? local form, viewlibrary, page_info = ... ?> <? require("viewfunctions") ?> +<? form = viewlibrary.dispatch_component(page_info.prefix .. page_info.controller .. "/editfile", form, true) ?> <script type="text/javascript" src="/js/jquery-latest.js"></script> <script type="text/javascript"> @@ -128,9 +129,9 @@ io.write("</span>") --]] ?> -<H1>CONFIGURATION</H1> -<H2>EXPERT CONFIGURATION</H2> -<H3>FILE DETAILS</H3> +<H1>Configuration</H1> +<H2>Expert Configuration</H2> +<H3>File Details</H3> <DL> <? displayitem(form.value.filename) @@ -139,7 +140,7 @@ displayitem(form.value.mtime) ?> </DL> -<H3>FILE ENTRIES</H3> +<H3>File Entries</H3> <? if form.descr then ?><P CLASS='descr'><?= string.gsub(form.descr, "\n", "<BR>") ?></P><? end ?> <? if form.errtxt then ?><P CLASS='error'><?= string.gsub(form.errtxt, "\n", "<BR>") ?></P><? end ?> <TABLE id="entries"> @@ -151,9 +152,9 @@ displayitem(form.value.mtime) </TABLE> <? if form.value.filecontent.errtxt then ?><P CLASS='error'><?= string.gsub(form.value.filecontent.errtxt, "\n", "<BR>") ?></P><? end ?> -<form action="" method="POST"> +<form action="<?= page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action ?>" method="POST"> <input type="hidden" name="filename" value="<?= form.value.filename.value ?>"> <input type="hidden" name="filecontent" value="<?= form.value.filecontent.value ?>"> -<H2>SAVE AND APPLY ABOVE SETTINGS</H2> -<DL><DT>Save/Apply above settings</DT><DD><input class="submit" type="submit" name="<?= form.option ?>" value="Save"></DD></DL> +<H2>Save and Apply Above Settings</H2> +<DL><DT></DT><DD><input class="submit" type="submit" name="<?= form.option ?>" value="<?= form.option ?>"></DD></DL> </form> |