summaryrefslogtreecommitdiffstats
path: root/provisioning-listtemplates-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'provisioning-listtemplates-html.lsp')
-rw-r--r--provisioning-listtemplates-html.lsp12
1 files changed, 7 insertions, 5 deletions
diff --git a/provisioning-listtemplates-html.lsp b/provisioning-listtemplates-html.lsp
index 9875b83..52edc6d 100644
--- a/provisioning-listtemplates-html.lsp
+++ b/provisioning-listtemplates-html.lsp
@@ -21,6 +21,7 @@ require("viewfunctions")
<TH>Action</TH>
<TH>File Name</TH>
<TH>Label</TH>
+ <TH>Sequence</TH>
<TH>File Size</TH>
<TH>Last Modified</TH>
</TR>
@@ -28,18 +29,19 @@ require("viewfunctions")
<% for k,v in ipairs( view.value ) do %>
<TR>
<TD>
- <% if viewlibrary.check_permission("deletetemplate") and v.template_id then %>
- <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletetemplate?template_id="..v.template_id, label="Delete ", class="deletetemplate"} %>
+ <% if viewlibrary.check_permission("deletetemplate") and v.label then %>
+ <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletetemplate?filename="..v.filename, label="Delete ", class="deletetemplate"} %>
<% end %>
- <% if viewlibrary.check_permission("edittemplate") and v.template_id then %>
- <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/edittemplate?template_id="..v.template_id.."&redir="..page_info.orig_action, label="Edit "} %>
+ <% if viewlibrary.check_permission("edittemplate") and v.label then %>
+ <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/edittemplate?filename="..v.filename.."&redir="..page_info.orig_action, label="Edit "} %>
<% end %>
- <% if viewlibrary.check_permission("createtemplate") and not v.template_id then %>
+ <% if viewlibrary.check_permission("createtemplate") and not v.label then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/createtemplate?filename="..v.filename.."&redir="..page_info.orig_action, label="Create "} %>
<% end %>
</TD>
<TD><%= html.html_escape(v.filename) %></TD>
<TD><%= html.html_escape(v.label) %></TD>
+ <TD><%= html.html_escape(v.seq) %></TD>
<TD><%= html.html_escape(v.filesize) %></TD>
<TD><%= html.html_escape(v.mtime) %></TD>
</TR>