From 5aa214f71f495db0d0d75e9e16f2677d6a09f585 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 28 Jul 2008 06:48:16 +0000 Subject: use <% %> instead of git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed --- interfaces-read-html.lsp | 70 ++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'interfaces-read-html.lsp') diff --git a/interfaces-read-html.lsp b/interfaces-read-html.lsp index 54908cf..ac910a9 100644 --- a/interfaces-read-html.lsp +++ b/interfaces-read-html.lsp @@ -1,68 +1,68 @@ - - +<% --[[ DEBUG INFORMATION io.write("

DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(view)) io.write("
") --]] -?> +%> - - - > - ") ?> - "..option.errtxt) end ?> +<% showoption = function(option) + if option.errtxt or option.value ~= "" then %> + <%= option.label %> + > + <%= string.gsub(tostring(option.value), "\n", "
") %> + <% if option.errtxt then io.write("
"..option.errtxt) end %> - - + <% end %> +<% end %> - +<% displaycommandresults({"delete", "ifup", "ifdown"}, session) %> - +end %>

Configured interfaces

- -
+<% for i,entry in ipairs(view.value) do + local interface = entry.value %> +
<%= interface.name.value %>
- + end %> - - Edit - - Delete - - ifup - - ifdown - + <% if session.permissions.interfaces.update then %> + Edit + <% end + if session.permissions.interfaces.delete then %> + Delete + <% end + if session.permissions.interfaces.ifup then %> + ifup + <% end + if session.permissions.interfaces.ifdown then %> + ifdown + <% end %>
- +<% end %>
-DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") --]] -?> +%> -- cgit v1.2.3