diff options
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> |