diff options
author | Mika Havela <mika.havela@gmail.com> | 2007-11-29 15:08:41 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2007-11-29 15:08:41 +0000 |
commit | 3a4f180a70063a185a8eab0e1409b255f0762861 (patch) | |
tree | 96280af931e67a8de34d00577c8651fa468697b3 /shorewall-edit-html.lsp | |
parent | d81ce7886c20e537161083279e9bc96cf6b74290 (diff) | |
download | acf-shorewall-3a4f180a70063a185a8eab0e1409b255f0762861.tar.bz2 acf-shorewall-3a4f180a70063a185a8eab0e1409b255f0762861.tar.xz |
Modifying file is now possible
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@386 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'shorewall-edit-html.lsp')
-rw-r--r-- | shorewall-edit-html.lsp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/shorewall-edit-html.lsp b/shorewall-edit-html.lsp index f1c4958..98c4abe 100644 --- a/shorewall-edit-html.lsp +++ b/shorewall-edit-html.lsp @@ -1,6 +1,7 @@ <? local view = ... ?> <html> <body> + <h1>Edit configuration</h1> <h2>Details</h2> @@ -14,20 +15,24 @@ <dt>Last modified</dt> <dd><?= view.filecontent.filedetails.mtimelong ?></dd> -<dt>Mode</dt> -<dd><?= view.filecontent.filedetails.mode ?></dd> +<h2>Content</h2> -<dt>Owner:Group</dt> -<dd><?= view.filecontent.filedetails.gid ?>:<?= view.filecontent.filedetails.group ?></dd> +<form name="myform" action="" method="POST"> +<input name="name" type=hidden value="<?= view.filecontent.filedetails.name ?>" style="width:100%"> +<textarea name="modifications" style="width:100%;height:400px;"><?= view.filecontent.value ?></textarea> -<h2>Content</h2> -<textarea name="" style="width:100%;height:400px;"><?= view.filecontent.value ?></textarea> +<input type="submit" name="cmd" value="update"><p class="error"><?= view.filecontent.errtxt ?></p></form> +<? --[[ DEBUG INFORMATION...?> <h2>DEUB INFO</h2> <? -for a,b in pairs(view.filecontent.filedetails) do +for a,b in pairs(view.filecontent) do print (a,b .. "<BR>") end ?> +<? --]] ?> + + + </body> </html> |