This commit was manufactured by cvs2svn to create tag 'freeside_2_1_1'.
[freeside.git] / httemplate / view / elements / svc_Common.html
index 8a352f3..852640e 100644 (file)
          )
 
 </%doc>
-<SCRIPT>
-function areyousure(href) {
-  if (confirm("Permanently delete this <% $label %>?") == true)
-    window.location.href = href;
-}
-</SCRIPT>
-
 % if ( $custnum ) { 
 
   <% include("/elements/header.html","View $label: $value") %>
@@ -43,13 +36,18 @@ function areyousure(href) {
             "javascript:areyousure(\'${p}misc/cancel-unaudited.cgi?$svcnum\')"
   )) %>
 
+  <SCRIPT>
+  function areyousure(href) {
+      if (confirm("Permanently delete this <% $label %>?") == true)
+          window.location.href = href;
+  }
+  </SCRIPT>
+
 % } 
 
 Service #<B><% $svcnum %></B>
 % my $url = $opt{'edit_url'} || $p. 'edit/'. $opt{'table'}. '.cgi?';
 | <A HREF="<%$url%><%$svcnum%>">Edit this <% $label %></A>
-| <A HREF="javascript:areyousure('<%$p.'misc/unprovision.cgi?'.$svcnum%>')">
-Unprovision this Service</A>
 <BR>
 
 <% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %>