summaryrefslogtreecommitdiffstats
path: root/app/shorewall-read-html.lsp
blob: c4732a07bc281fa1a5ed5e1f4a3b565e103e3da4 (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
<? local view = ... ?>

<? --Status Block

?>

<h1>Edit</h1>
<table border=0>
<? local sct=""
for i,item in ipairs(view.list) do
    if item.section ~= sct then
        ?><tr><td colspan='3'><h2><?= item.section ?></td></tr><?
        sct = item.section
    end
    ?><tr><td><?= item.status or '' ?><?
    ?><td><?= html.link{
        value = view.script .. view.prefix .. view.controller .. "/"
        .. view.action .. "?id=" .. tostring(item.id),
        label=item.name
    }
    ?></td><td><?= item.descr
    ?></td></tr><? 
end ?>
</table>