summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main/packages/services.html
diff options
context:
space:
mode:
authorivan <ivan>2009-05-20 15:27:17 +0000
committerivan <ivan>2009-05-20 15:27:17 +0000
commit98901e4ef499dfb983bbd0d467eca3a0534bc3e9 (patch)
tree6e57a5213d76d03bf1978d5cd6bd03ea77b23a2f /httemplate/view/cust_main/packages/services.html
parent2fd929f5185673c55f46cca2e8c846c47e7cf959 (diff)
add "manage device" link & config, RT#5438
Diffstat (limited to 'httemplate/view/cust_main/packages/services.html')
-rw-r--r--httemplate/view/cust_main/packages/services.html23
1 files changed, 17 insertions, 6 deletions
diff --git a/httemplate/view/cust_main/packages/services.html b/httemplate/view/cust_main/packages/services.html
index 1e473736b..37cd615eb 100644
--- a/httemplate/view/cust_main/packages/services.html
+++ b/httemplate/view/cust_main/packages/services.html
@@ -36,15 +36,24 @@
% )
% ) {
(&nbsp;<%svc_recharge_link($cust_svc)%>&nbsp;)
-% }
+% }
</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') ) {
- (&nbsp;<%svc_unprovision_link($cust_svc)%>&nbsp;)
-% }
- </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">(&nbsp;<A HREF="<% $svc_manage_link %>">Manage Device</A>&nbsp;)</FONT>
+
+% }
+
+
+% if ( $curuser->access_right('Unprovision customer service') ) {
+ <FONT SIZE="-2">(&nbsp;<%svc_unprovision_link($cust_svc)%>&nbsp;)</FONT>
+% }
+ </TD>
</TR>
% }
@@ -75,6 +84,8 @@ my $cust_pkg = $opt{'cust_pkg'};
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+/&nbsp;/g;