summaryrefslogtreecommitdiffstats
path: root/shorewall-edit-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-15 13:44:22 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-15 13:44:22 +0000
commit91f600e62d83f942e722dd18e7c42c244557a610 (patch)
treeb1374d3109b9140da0f0fecde2a8d739e091f9b3 /shorewall-edit-html.lsp
parent880d1fbbed5e15454383dccf7c3497a8772df118 (diff)
downloadacf-shorewall-91f600e62d83f942e722dd18e7c42c244557a610.tar.bz2
acf-shorewall-91f600e62d83f942e722dd18e7c42c244557a610.tar.xz
Created a confirmation when you start/stop/restart the firewall.
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@572 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'shorewall-edit-html.lsp')
-rw-r--r--shorewall-edit-html.lsp62
1 files changed, 48 insertions, 14 deletions
diff --git a/shorewall-edit-html.lsp b/shorewall-edit-html.lsp
index c1d2537..c3384bb 100644
--- a/shorewall-edit-html.lsp
+++ b/shorewall-edit-html.lsp
@@ -1,27 +1,61 @@
<? local view = ... ?>
-<html>
-<body>
-<h1>Edit configuration</h1>
+<h1>SYSTEM INFO</h1>
-<h2>Details</h2>
+<dt>Program status</dt>
+<DD><?= view.status.status ?></DD>
+
+<dt>Program version</dt>
+<dd><?= view.status.version ?></dd>
+
+<h1>CONFIGURATION</h1>
+
+<H2>Expert config</H2>
+
+<h3>File details</h3>
<dt>File name</dt>
-<dd><?= view.filecontent.filedetails.longname ?></dd>
+<dd><?= view.file.details.path ?></dd>
<dt>File size</dt>
-<dd><?= view.filecontent.filedetails.size ?></dd>
+<dd><?= view.file.details.size ?></dd>
<dt>Last modified</dt>
-<dd><?= view.filecontent.filedetails.mtimelong ?></dd>
+<dd><?= view.file.details.mtime ?></dd>
-<h2>Content</h2>
+<h3>File content</h3>
<form name="myform" action="" method="POST">
-<input name="name" type=hidden value="<?= view.filecontent.filedetails.name ?>">
-<textarea name="modifications"><?= view.filecontent.value ?></textarea>
-
-<input type="submit" name="cmd" value="update" class="submit"><p class="error"><?= view.filecontent.errtxt ?></p></form>
+<input name="name" type=hidden value="<?= view.file.details.path ?>">
+<textarea name="modifications"><?= view.file.content ?></textarea>
+
+<H2>Save and apply above settings</H2>
+<DT>Apply settings</DT>
+<DD><input class="submit" type="submit" value="Apply"/></DD>
+</form>
+
+<H1>MANAGEMENT</H1>
+
+<dl>
+<dt>Program controll-panel</dt>
+<dd><form name="cmd" action="<?= view.confirm_url ?>" method="POST">
+<input type=submit class="submit" name="cmd" value="start">
+<input type=submit class="submit" name="cmd" value="stop">
+<input type=submit class="submit" name="cmd" value="restart">
+</form></dd>
+</dl>
+
+<? if (view.startstop) and (view.startstop.cmdresult) then ?>
+<dl>
+<dt>Previous action result</dt>
+<dd><pre><?= view.startstop.cmdresult?></pre></dd>
+</dl>
+<? end ?>
+
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>
-</body>
-</html>