[freeside-commits] freeside/httemplate/view/cust_main/packages services.html, 1.2, 1.3
Ivan,,,
ivan at wavetail.420.am
Wed May 20 08:27:20 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages
In directory wavetail.420.am:/tmp/cvs-serv27063/httemplate/view/cust_main/packages
Modified Files:
services.html
Log Message:
add "manage device" link & config, RT#5438
Index: services.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages/services.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- services.html 7 Feb 2009 08:23:10 -0000 1.2
+++ services.html 20 May 2009 15:27:17 -0000 1.3
@@ -36,15 +36,24 @@
% )
% ) {
( <%svc_recharge_link($cust_svc)%> )
-% }
+% }
</FONT></TD>
- <TD ALIGN="right" VALIGN="top" STYLE="padding-bottom:5px;padding-top:0px"><FONT SIZE="-2">
+ <TD ALIGN="right" VALIGN="top" STYLE="padding-bottom:5px;padding-top:0px">
-% if ( $curuser->access_right('Unprovision customer service') ) {
- ( <%svc_unprovision_link($cust_svc)%> )
-% }
- </FONT></TD>
+% my $manage_link = $opt{'svc_broadband-manage_link'};
+% if ( $manage_link && $part_svc->svcdb eq 'svc_broadband' ) {
+% my $ip_addr = $cust_svc->svc_x->ip_addr;
+% my $svc_manage_link = eval(qq("$manage_link"));
+ <FONT SIZE="-1" STYLE="float:left">( <A HREF="<% $svc_manage_link %>">Manage Device</A> )</FONT>
+
+% }
+
+
+% if ( $curuser->access_right('Unprovision customer service') ) {
+ <FONT SIZE="-2">( <%svc_unprovision_link($cust_svc)%> )</FONT>
+% }
+ </TD>
</TR>
% }
@@ -75,6 +84,8 @@
my $part_pkg = $opt{'part_pkg'};
my $curuser = $FS::CurrentUser::CurrentUser;
+my $conf = new FS::Conf;
+
sub svc_provision_link {
my ($cust_pkg, $part_svc, $opt, $curuser) = @_;
( my $svc_nbsp = $part_svc->svc ) =~ s/\s+/ /g;
More information about the freeside-commits
mailing list