[freeside-commits] freeside/httemplate/elements tr-cust_svc.html, 1.5.2.1, 1.5.2.2
Ivan,,,
ivan at wavetail.420.am
Sun Nov 20 16:02:20 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv9317/httemplate/elements
Modified Files:
Tag: FREESIDE_2_3_BRANCH
tr-cust_svc.html
Log Message:
add svc_broadband-manage_link-new_window, RT#14696
Index: tr-cust_svc.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/tr-cust_svc.html,v
retrieving revision 1.5.2.1
retrieving revision 1.5.2.2
diff -u -w -d -r1.5.2.1 -r1.5.2.2
--- tr-cust_svc.html 11 Nov 2011 03:13:16 -0000 1.5.2.1
+++ tr-cust_svc.html 21 Nov 2011 00:02:18 -0000 1.5.2.2
@@ -29,7 +29,7 @@
%></B></TD>
<TD ALIGN="right"><% FS::UI::Web::svc_export_links($m, $part_svc, $cust_svc) %>
% if ( $manage_link and $opt{'manage_link_loc'} eq 'right' ) {
- <A HREF="<% $manage_link %>"><% $opt{'manage_link_text'} |h %></A>
+ <A HREF="<% $manage_link %>" <% $manage_target %>><% $opt{'manage_link_text'} |h %></A>
% }
</TD>
</TR>
@@ -66,7 +66,7 @@
'ip' => $svc_x->ip_addr
) %> )</FONT>
% if ( $manage_link and $opt{'manage_link_loc'} eq 'bottom' ) {
- <FONT SIZE="-2">( <A HREF="<% $manage_link %>"><% $opt{'manage_link_text'} |h %></A> )</FONT>
+ <FONT SIZE="-2">( <A HREF="<% $manage_link %>" <% $manage_target %>><% $opt{'manage_link_text'} |h %></A> )</FONT>
% }
% } #svc_broadband
% if ( $curuser->access_right('Unprovision customer service') ) {
@@ -94,11 +94,13 @@
qq!', '!.emt('Permanently unprovision and delete this service?').qq!')">!.emt('Unprovision').'</A>';
my $manage_link = $opt{'manage_link'};
+my $manage_target = '';
if ( $part_svc->svcdb eq 'svc_broadband' and $manage_link ) {
my $ip_addr = $svc_x->ip_addr; #substitution for $manage_link
$manage_link = eval(qq("$manage_link"));
$opt{'manage_link_text'} ||= mt('Manage Device');
$opt{'manage_link_loc'} ||= 'bottom';
+ $manage_target = ' target="_blank"' if $opt{'manage_link-new_window'};
}
else {
$manage_link = '';
More information about the freeside-commits
mailing list