diff options
author | ivan <ivan> | 2011-04-25 16:57:23 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-04-25 16:57:23 +0000 |
commit | 0301d1273aae53a35f428cff5a501849768befc8 (patch) | |
tree | 91f4f0abcf775dae73b0eab8fbb3674f21e895e1 /httemplate/elements/tr-cust_svc.html | |
parent | ee953407088b8f71cf671aeb88fa6f227a4f109c (diff) |
fix manage device link, RT#12589
Diffstat (limited to 'httemplate/elements/tr-cust_svc.html')
-rw-r--r-- | httemplate/elements/tr-cust_svc.html | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/httemplate/elements/tr-cust_svc.html b/httemplate/elements/tr-cust_svc.html index e792ff350..79a3b298c 100644 --- a/httemplate/elements/tr-cust_svc.html +++ b/httemplate/elements/tr-cust_svc.html @@ -1,8 +1,22 @@ <%doc> tr-cust_svc - Short display of a customer service for use in view/cust_main. -Formerly part of view/cust_main/packages/services.html, moved here for -cleanliness. +Formerly part of view/cust_main/packages/services.html + +Usage: + + <% include('/elements/tr-cust_svc.html', + #required + 'part_svc' => $part_svc, + 'cust_svc' => $cust_svc, + 'cust_pkg' => $cust_pkg, + #optional + 'cust_pkg-display_times' => '', #bool + 'svc_broadband-manage_link' => '', + 'maestro-status_test' => '', + ) + %> + </%doc> <TR> <TD ALIGN="right" VALIGN="top"><% @@ -46,9 +60,10 @@ $cust_svc->overlimit ) ) %> )</FONT> % my $manage_link = $opt{'svc_broadband-manage_link'}; % if ( $manage_link ) { - <FONT SIZE="-1" STYLE="float:left">( <A HREF="<% - eval(qq("$manage_link")) - %>">Manage Device</A> )</FONT> +% my $ip_addr = $svc_x->ip_addr; #substitution for $manage_link + <FONT SIZE="-1" STYLE="float:left">( <A HREF="<% + eval(qq("$manage_link")) + %>">Manage Device</A> )</FONT> % } % } #svc_broadband % if ( $curuser->access_right('Unprovision customer service') ) { |