summaryrefslogtreecommitdiffstats
path: root/shorewall-edit-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'shorewall-edit-html.lsp')
-rw-r--r--shorewall-edit-html.lsp28
1 files changed, 28 insertions, 0 deletions
diff --git a/shorewall-edit-html.lsp b/shorewall-edit-html.lsp
new file mode 100644
index 0000000..3e12554
--- /dev/null
+++ b/shorewall-edit-html.lsp
@@ -0,0 +1,28 @@
+<? local view = ... ?>
+<html>
+<body>
+<h1>Edit configuration</h1>
+
+<h2>Details</h2>
+
+<dt>File name</dt>
+<dd><?= view.filecontent.filedetails.longname ?></dd>
+
+<dt>File size</dt>
+<dd><?= view.filecontent.filedetails.size ?></dd>
+
+<dt>Last modified</dt>
+<dd><?= view.filecontent.filedetails.mtime ?></dd>
+
+<dt>Mode</dt>
+<dd><?= view.filecontent.filedetails.mode ?></dd>
+
+<dt>Owner:Group</dt>
+<dd><?= view.filecontent.filedetails.uid ?>:<?= view.filecontent.filedetails.gid ?></dd>
+
+<h2>Content</h2>
+<textarea name="" style="width:100%;height:400px;"><?= view.filecontent.value ?></textarea>
+
+
+</body>
+</html>