summaryrefslogtreecommitdiffstats
path: root/openvpn-unknown_config-html.lsp
blob: fe8aa1fa492f1e720084b4f25bac1a68d780c578 (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
<? local view = ... ?>
<html>
<body>
<h1>Configuration file '<?= view.configfilecontent.name ?>'</h1>

<h2>Details</h2>

<dt>File name</dt>
<dd><?= view.configfilecontent.filedetails.longname ?></dd>

<dt>File size</dt>
<dd><?= view.configfilecontent.filedetails.size ?></dd>

<dt>Last modified</dt>
<dd><?= view.configfilecontent.filedetails.mtimelong ?></dd>

<dt>This config looks like a</dt>
<dd><a href="<?= view.url ?>/<?= view.configfilecontent.type ?>_config?name=<?= view.configfilecontent.name ?>"><?= view.configfilecontent.type ?></a> config</a></dd>

<h2>Content</h2>

<form name="myform" action="" method="POST">
<input name="name" type="hidden" value="<?= view.configfilecontent.name ?>">
<textarea name="modifications"><?= view.configfilecontent.value ?></textarea>

<input type="submit" name="cmd" class="submit" value="update"></form>

</body>
</html>