diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-06-04 03:23:27 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-06-04 03:23:27 -0700 |
commit | 4cd40172ccbfce9cfa49bff5a6338f3c6c978f4b (patch) | |
tree | dd43902ce7adb0c97674587dbc8b4aca944e953a /httemplate/elements | |
parent | 206197352809cdbb78134c1e59905f05a2bfca69 (diff) |
move services between packages, RT#22619
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/tr-cust_svc.html | 42 | ||||
-rw-r--r-- | httemplate/elements/tr-cust_svc_cancel.html | 20 |
2 files changed, 41 insertions, 21 deletions
diff --git a/httemplate/elements/tr-cust_svc.html b/httemplate/elements/tr-cust_svc.html index b66654f38..3710b27ff 100644 --- a/httemplate/elements/tr-cust_svc.html +++ b/httemplate/elements/tr-cust_svc.html @@ -15,20 +15,35 @@ Usage: 'manage_link' => '', #for svc_broadband 'manage_link_text' => '', #default 'Manage Device' 'manage_link_loc' => '', #default 'bottom', or 'right' - 'maestro-status_test' => '', ) %> </%doc> <TR> - <TD ALIGN="right" VALIGN="top"><% -FS::UI::Web::svc_link($m, $part_svc, $cust_svc) -%></TD> - <TD STYLE="padding-bottom:0px"><B><% $cust_svc->agent_svcid ? $cust_svc->agent_svcid.': ' : '' %><% -FS::UI::Web::svc_label_link($m, $part_svc, $cust_svc) -%></B></TD> + <TD ALIGN="right" VALIGN="top"> +% if ( $opt{no_links} ) { + <% $part_svc->svc |h %>: +% } else { + <% FS::UI::Web::svc_link($m, $part_svc, $cust_svc) %> +% } + </TD> + <TD STYLE="padding-bottom:0px" VALIGN="top"> +% if ( $opt{before_svc_callback} ) { + <% &{ $opt{before_svc_callback} }( $cust_svc ) %> +% } + <B><% $cust_svc->agent_svcid ? $cust_svc->agent_svcid.': ' : '' %> +% if ( $opt{no_links} ) { + <% ($cust_svc->label)[1] |h %> +% } else { + <% FS::UI::Web::svc_label_link($m, $part_svc, $cust_svc) %> +% } + </B> +% if ( $opt{after_svc_callback} ) { + <% &{ $opt{after_svc_callback} }( $cust_svc ) %> +% } + </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' ) { +% if ( $manage_link and $opt{'manage_link_loc'} eq 'right' && ! $opt{no_links} ) { <A HREF="<% $manage_link %>" <% $manage_target %>><% $opt{'manage_link_text'} |h %></A> % } </TD> @@ -49,6 +64,7 @@ $cust_svc->overlimit ) <TD ALIGN="right" VALIGN="top" STYLE="padding-bottom:5px; padding-top:0px"> % if ( $curuser->access_right('Recharge customer service') % && $part_svc->svcdb eq 'svc_acct' +% && ! $opt{no_links} % && ( $svc_x->seconds ne '' % || $svc_x->upbytes ne '' % || $svc_x->downbytes ne '' @@ -60,22 +76,18 @@ $cust_svc->overlimit ) </TD> % # second column: all other action links <TD ALIGN="right" VALIGN="top" STYLE="padding-bottom:5px; padding-top:0px"> -% if ( $part_svc->svcdb eq 'svc_broadband' ) { +% if ( $part_svc->svcdb eq 'svc_broadband' && ! $opt{no_links} ) { <FONT SIZE="-2">( <% include('/elements/popup_link-ping.html', 'ip' => $svc_x->ip_addr ) %> )</FONT> -% if ( $manage_link and $opt{'manage_link_loc'} eq 'bottom' ) { +% if ( $manage_link and $opt{'manage_link_loc'} eq 'bottom' && ! $opt{no_links} ) { <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') ) { +% if ( $curuser->access_right('Unprovision customer service') && ! $opt{no_links} ) { <FONT SIZE="-2">( <% $svc_unprovision_link %> )</FONT> % } -% if ( $part_svc->svcdb eq 'svc_pbx' && $opt{'maestro-status_test'} ) { - <FONT SIZE="-2">( <A HREF="<%$p%>misc/maestro-customer_status-test.html?<% $cust_pkg->custnum.'+'.$cust_svc->svcnum %>">Test maestro status</A> ) - </FONT> -% } </TD> </TR> diff --git a/httemplate/elements/tr-cust_svc_cancel.html b/httemplate/elements/tr-cust_svc_cancel.html index e7fa47a92..44276ec82 100644 --- a/httemplate/elements/tr-cust_svc_cancel.html +++ b/httemplate/elements/tr-cust_svc_cancel.html @@ -3,12 +3,20 @@ tr-cust_svc_cancel - Short display of a canceled customer service for use in view/cust_main. </%doc> <TR STYLE="color:#cccccc;"> - <TD ALIGN="right" VALIGN="top"><% -FS::UI::Web::svc_link($m, $part_svc, $cust_svc) -%></TD> - <TD STYLE="padding-bottom:0px;"><B><% -FS::UI::Web::svc_label_link($m, $part_svc, $cust_svc) -%></B></TD> + <TD ALIGN="right" VALIGN="top"> +% if ( $opt{no_links} ) { + <% $part_svc->svc |h %>: +% } else { + <% FS::UI::Web::svc_link($m, $part_svc, $cust_svc) %> +% } + </TD> + <TD STYLE="padding-bottom:0px;"><B> +% if ( $opt{no_links} ) { + <% ($cust_svc->label)[1] |h %> +% } else { + <% FS::UI::Web::svc_label_link($m, $part_svc, $cust_svc) %> +% } + </B></TD> </TR> %# no action links, the service is canceled |