summaryrefslogtreecommitdiffstats
path: root/shorewall-edit-html.lsp
blob: afbe172251225113ae5375fbe1736deeb6708049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<? local view = ... ?>
<html>
<body>

<h1>Edit configuration</h1>

<h2>MENU</h2>

<dt><?= html.link{value = view.url .. "/", label="Home" } ?></dt>
<dd>Go back to start page</dd>

<dt><?= html.link{value = view.url .. "/advanced", label="Advanced" } ?></dt>
<dd>Provide a autogenerated list of files in '/etc/shorewall'.</dd>

<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.mtimelong ?></dd>

<h2>Content</h2>

<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:360px;"><?= view.filecontent.value ?></textarea>

<input type="submit" name="cmd" value="update"><p class="error"><?= view.filecontent.errtxt ?></p></form>

<?
--[[ DEBUG INFORMATION
require("debugs")
io.write(debugs.variables(view))
--]]
?>

</body>
</html>