summaryrefslogtreecommitdiffstats
path: root/provisioning-edittemplate-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-10-28 13:47:54 +0000
committerTed Trask <ttrask01@yahoo.com>2010-10-28 13:47:54 +0000
commit5c93a38c2cc263727be345ff5a197ea9bc78595b (patch)
treea7524afa5f02d77f1effa6625d249d8968000341 /provisioning-edittemplate-html.lsp
downloadacf-provisioning-5c93a38c2cc263727be345ff5a197ea9bc78595b.tar.bz2
acf-provisioning-5c93a38c2cc263727be345ff5a197ea9bc78595b.tar.xz
Starting to develop provisioning application.
It has the basics for creating/editing/deleting devices/templates/classes/groups/parameters.
Diffstat (limited to 'provisioning-edittemplate-html.lsp')
-rw-r--r--provisioning-edittemplate-html.lsp27
1 files changed, 27 insertions, 0 deletions
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") %>
+
+<H1><%= html.html_escape(form.label) %></H1>
+<H2>Template Details</H2>
+<% 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")
+%>
+</DL>
+
+<H2>File Content</H2>
+<DL>
+<textarea name="filecontent">
+<%= html.html_escape(form.value.filecontent.value) %>
+</textarea>
+<% if form.value.filecontent.errtxt then %><P CLASS='error'><%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "<BR>") %></P><% end %>
+<% if form.value.filecontent.descr then %><P CLASS='descr'><%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "<BR>") %></P><% end %>
+
+<% displayformend(form) %>