summaryrefslogtreecommitdiffstats
path: root/shorewall-edit-html.lsp
blob: 98c4abe49fda4db2918cd317f028131a1ee6bf34 (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
<? 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.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: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) do
print (a,b .. "<BR>")
end
?>
<? --]] ?>



</body>
</html>