From e839d6e272fb8481d18063a75d6e63a2409c82c7 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 26 Feb 2011 08:58:29 +0000 Subject: Removed template from device and set it up as a parameter instead, moved scripts into privisioning-scripts.lua, and added DB values for all tables to set up phone provisioning --- provisioning-listtemplates-html.lsp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'provisioning-listtemplates-html.lsp') 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") Action File Name Label + Sequence File Size Last Modified @@ -28,18 +29,19 @@ require("viewfunctions") <% for k,v in ipairs( view.value ) do %> - <% 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 %> <%= html.html_escape(v.filename) %> <%= html.html_escape(v.label) %> + <%= html.html_escape(v.seq) %> <%= html.html_escape(v.filesize) %> <%= html.html_escape(v.mtime) %> -- cgit v1.2.3