summaryrefslogtreecommitdiffstats
path: root/provisioning-edittemplate-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2017-02-22 21:23:32 +0000
committerTed Trask <ttrask01@yahoo.com>2017-02-22 21:23:32 +0000
commita1da445f34e1c4139e49591a661902f63eef75a4 (patch)
treea50dbd8c5039626ca2a2e04d335453e4c694b5cb /provisioning-edittemplate-html.lsp
parent07027036bc14ebbb75e54f81b3134ec2b9dc0783 (diff)
downloadacf-provisioning-a1da445f34e1c4139e49591a661902f63eef75a4.tar.bz2
acf-provisioning-a1da445f34e1c4139e49591a661902f63eef75a4.tar.xz
Revert "Add notifydevices param and add it to all actions that modify devices (not yet implemented)"
Diffstat (limited to 'provisioning-edittemplate-html.lsp')
-rw-r--r--provisioning-edittemplate-html.lsp21
1 files changed, 0 insertions, 21 deletions
diff --git a/provisioning-edittemplate-html.lsp b/provisioning-edittemplate-html.lsp
index 56d3446..0ef5bc2 100644
--- a/provisioning-edittemplate-html.lsp
+++ b/provisioning-edittemplate-html.lsp
@@ -2,26 +2,8 @@
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
-<script type="text/javascript">
- if (typeof jQuery == 'undefined') {
- document.write('<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery-latest.js"><\/script>');
- }
-</script>
-
-<script type="text/javascript">
- $(document).ready(function() {
- $("[id=<%= page_info.action %>]").submit(function(event){
- if ($(this).find("#notifydevices").is(":checked")) {
- return confirm("Are you sure you want to notify affected devices? This might cause a reboot.");
- }
- return true;
- });
- });
-</script>
-
<% local header_level = htmlviewfunctions.displaysectionstart(form, page_info) %>
<% htmlviewfunctions.displayformstart(form, page_info) %>
-<% htmlviewfunctions.displayformitem(form.value.notifydevices, "notifydevices") %>
<% local header_level2 = htmlviewfunctions.displaysectionstart(cfe({label="Template Details"}), page_info, htmlviewfunctions.incrementheader(header_level)) %>
<%
if page_info.action == "edittemplate" then
@@ -33,7 +15,6 @@ htmlviewfunctions.displayformitem(form.value.seq, "seq")
%>
<% htmlviewfunctions.displaysectionend(header_level2) %>
-<% if form.value.filecontent then %>
<% htmlviewfunctions.displaysectionstart(cfe({label="File Content"}), page_info, header_level2) %>
<textarea name="filecontent">
<%= html.html_escape(form.value.filecontent.value) %>
@@ -41,7 +22,5 @@ htmlviewfunctions.displayformitem(form.value.seq, "seq")
<% htmlviewfunctions.displayinfo(form.value.filecontent) %>
<% htmlviewfunctions.displaysectionend(header_level2) %>
-<% end %>
-
<% htmlviewfunctions.displayformend(form) %>
<% htmlviewfunctions.displaysectionend(header_level) %>