X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-cust_svc.html;h=8bd77124dffcea3953d47a1bb60f1fb1039a8b70;hp=dd81ce5e862e75ccb74897ea572790a603447acf;hb=1cc2f252d504829e7aa4394a4c788e6e6fc03756;hpb=7d964ae317fc7405a9428f3e06dbdd5dcdecf07f
diff --git a/httemplate/elements/tr-cust_svc.html b/httemplate/elements/tr-cust_svc.html
index dd81ce5e8..8bd77124d 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' => '',
)
%>
@@ -25,7 +27,11 @@ FS::UI::Web::svc_link($m, $part_svc, $cust_svc)
<%
FS::UI::Web::svc_label_link($m, $part_svc, $cust_svc)
%> |
-<% FS::UI::Web::svc_export_links($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 ) {
@@ -55,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') ) {
@@ -91,4 +93,15 @@ my $svc_unprovision_link =
$cust_svc->svcnum .
qq!', '!.emt('Permanently unprovision and delete this service?').qq!')">!.emt('Unprovision').'';
+my $manage_link = $opt{'manage_link'};
+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';
+}
+else {
+ $manage_link = '';
+}
+
%init>
|