[freeside-commits] freeside/httemplate/view/elements svc_Common.html, 1.15, 1.16 svc_edit_link.html, NONE, 1.1

Mark Wells mark at wavetail.420.am
Thu Mar 31 19:52:27 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/view/elements
In directory wavetail.420.am:/tmp/cvs-serv29538/httemplate/view/elements

Modified Files:
	svc_Common.html 
Added Files:
	svc_edit_link.html 
Log Message:
svc_hardware and svc_dish, #11454

Index: svc_Common.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/elements/svc_Common.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -w -d -r1.15 -r1.16
--- svc_Common.html	7 Dec 2010 19:04:43 -0000	1.15
+++ svc_Common.html	1 Apr 2011 02:52:21 -0000	1.16
@@ -51,10 +51,7 @@
 
 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>
+| <% include('/view/elements/svc_edit_link.html', 'svc' => $svc_x) %>
 <BR>
 
 <% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %>

--- NEW FILE: svc_edit_link.html ---
% if ( $cancel_date ) {
<I>Canceled <% time2str('%b %o %Y', $cancel_date) %></I>
% } else {
<SCRIPT>
function areyousure_delete() {
  if (confirm("Permanently delete this service?") == true)
    window.location.href = '<% $cancel_url %>';
}
</SCRIPT>
<A HREF="<% $edit_url %>">Edit this <% $label %></A> | 
<A HREF="javascript:areyousure_delete()">
Unprovision this Service</A>
% }
<%init>
my %opt = @_;
my $svc_x = $opt{'svc'} or die "'svc' required";
my $svcdb = $opt{'table'} || $svc_x->table;
my $edit_url = $opt{'edit_url'} || 
               $p . 'edit/' . $svcdb . '.cgi?' . $svc_x->svcnum;
my $cancel_url = $p . 'misc/unprovision.cgi?' . $svc_x->svcnum;
my $cust_svc = $svc_x->cust_svc; # always exists
my $cancel_date = $cust_svc->pkg_cancel_date;
my ($label) = $cust_svc->label;
</%init>



More information about the freeside-commits mailing list