summaryrefslogtreecommitdiffstats
path: root/shorewall-edit-html.lsp
blob: f9ce486094516787506b953fc9419a1840831878 (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
<? 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
require("debugs")
io.write(debugs.variables(view))
--]]
?>

</body>
</html>