diff options
Diffstat (limited to 'lbu-commit-html.lsp')
-rw-r--r-- | lbu-commit-html.lsp | 58 |
1 files changed, 23 insertions, 35 deletions
diff --git a/lbu-commit-html.lsp b/lbu-commit-html.lsp index c5e1ff2..3ea0815 100644 --- a/lbu-commit-html.lsp +++ b/lbu-commit-html.lsp @@ -10,43 +10,31 @@ local function packURL(script, prefix, controller, action, extra) end return ret end +?> ---[[ -view - script, prefix, controller, action - data[] - name, - status - title - text[] - label - content ---]] -?><h1><?= view.title -?></h1><? - ---Status Block - for i,item in ipairs(view.note or {}) do - ?><p class='error'><?= item.content ?></p><? - end +<h1><?= view.title?></h1> -?><table><? -for i,item in ipairs(view.data) do - ?><tr><td><?= item.status ?><td><?= item.name ?><? -end -?></table><? -?><?= html.form.start { +<? for i,item in ipairs(view.note or {}) do ?> + <p class='error'><?= item.content ?></p> +<? end ?> +<? for i,item in ipairs(view.data) do ?> + <dt><?= item.name ?></dt><dd><?= item.status ?></dd> +<? end ?> +<dt>Save these changes</dt> +<dd><?= html.form.start { method="POST", action = packURL(view.script, view.prefix, view.controller, view.action, {}) - } -?><?= html.form.submit { name = view.action, value = view.action } -?><?= html.form.stop() ?><? -for i,item in ipairs(view.text) do - if item.label then - ?><h2><?= item.label ?></h2><? - end - ?><pre><?= item.content ?></pre><? -end --- vim: set filetype=lua : -?> + }?> +<?= html.form.submit { name = view.action, value = view.action }?> +<?= html.form.stop() ?> +</dd> + +<? for i,item in ipairs(view.text) do + if item.label then ?> + <h2><?= item.label ?></h2> + <? end ?> + <pre><?= item.content ?></pre> +<? end ?> +<? -- vim: set filetype=lua : ?> + |