From 5c93a38c2cc263727be345ff5a197ea9bc78595b Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 28 Oct 2010 13:47:54 +0000 Subject: Starting to develop provisioning application. It has the basics for creating/editing/deleting devices/templates/classes/groups/parameters. --- provisioning-edittemplate-html.lsp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 provisioning-edittemplate-html.lsp (limited to 'provisioning-edittemplate-html.lsp') diff --git a/provisioning-edittemplate-html.lsp b/provisioning-edittemplate-html.lsp new file mode 100644 index 0000000..df3b4d1 --- /dev/null +++ b/provisioning-edittemplate-html.lsp @@ -0,0 +1,27 @@ +<% local form, viewlibrary, page_info = ... %> +<% require("viewfunctions") %> + +

<%= html.html_escape(form.label) %>

+

Template Details

+<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> +<% displayformstart(form) %> +<% +if page_info.action == "edittemplate" then + form.value.template_id.readonly = "true" + form.value.filename.readonly = "true" + displayformitem(form.value.template_id, "template_id") +end +displayformitem(form.value.filename, "filename") +displayformitem(form.value.label, "label") +%> + + +

File Content

+
+ +<% if form.value.filecontent.errtxt then %>

<%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "
") %>

<% end %> +<% if form.value.filecontent.descr then %>

<%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "
") %>

<% end %> + +<% displayformend(form) %> -- cgit v1.2.3