X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-cust_svc.html;h=1ca22f6d409d92dc31bf08ddf1ca7fc9a2b0ec51;hb=a72a10f754f7465121d6137bb3dcee0a21ea6443;hp=6bc9f2c392a3d86a3a26356443bc0c7a2e7f5a93;hpb=73ccbbf60928661e385c826de893e6fd57c7e364;p=freeside.git
diff --git a/httemplate/elements/tr-cust_svc.html b/httemplate/elements/tr-cust_svc.html
index 6bc9f2c39..1ca22f6d4 100644
--- a/httemplate/elements/tr-cust_svc.html
+++ b/httemplate/elements/tr-cust_svc.html
@@ -12,7 +12,9 @@ Usage:
'cust_pkg' => $cust_pkg,
#optional
'cust_pkg-display_times' => '', #bool
- 'svc_broadband-manage_link' => '',
+ 'manage_link' => '', #for svc_broadband
+ 'manage_link_text' => '', #default 'Manage Device'
+ 'manage_link_loc' => '', #default 'bottom', or 'right'
'maestro-status_test' => '',
)
%>
@@ -22,9 +24,14 @@ Usage:
<%
FS::UI::Web::svc_link($m, $part_svc, $cust_svc)
%> |
- <%
+ | <% $cust_svc->agent_svcid ? $cust_svc->agent_svcid.': ' : '' %><%
FS::UI::Web::svc_label_link($m, $part_svc, $cust_svc)
%> |
+<% FS::UI::Web::svc_export_links($m, $part_svc, $cust_svc) %>
+% if ( $manage_link and $opt{'manage_link_loc'} eq 'right' ) {
+ ><% $opt{'manage_link_text'} |h %>
+% }
+ |
% if ( $cust_svc->overlimit ) {
@@ -54,16 +61,12 @@ $cust_svc->overlimit )
% # second column: all other action links
% if ( $part_svc->svcdb eq 'svc_broadband' ) {
- ( <%
+ ( <%
include('/elements/popup_link-ping.html',
'ip' => $svc_x->ip_addr
) %> )
-% my $manage_link = $opt{'svc_broadband-manage_link'};
-% if ( $manage_link ) {
-% my $ip_addr = $svc_x->ip_addr; #substitution for $manage_link
- ( "><% mt('Manage Device') |h %> )
+% if ( $manage_link and $opt{'manage_link_loc'} eq 'bottom' ) {
+ ( ><% $opt{'manage_link_text'} |h %> )
% }
% } #svc_broadband
% if ( $curuser->access_right('Unprovision customer service') ) {
@@ -88,6 +91,19 @@ my $svc_x = $cust_svc->svc_x;
my $svc_unprovision_link =
qq!'.emt('Unprovision').'';
+ qq!', '!.emt('Permanently unprovision and delete this service?').qq!')">!.emt('Unprovision').'';
+
+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 = '';
+}
%init>
|