X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages%2Fservices.html;h=7dfc0049efa5f79dedae856a47522140c6f3d0fb;hb=5c6ae08373b08615c7ab9ffbb98eada0cfd2878f;hp=c0a56d0f3e093a829aba3cac0e1926cf2d24805d;hpb=6aa1a0eeb1c28caf6af94a1323f69f3bb4256302;p=freeside.git diff --git a/httemplate/view/cust_main/packages/services.html b/httemplate/view/cust_main/packages/services.html index c0a56d0f3..7dfc0049e 100644 --- a/httemplate/view/cust_main/packages/services.html +++ b/httemplate/view/cust_main/packages/services.html @@ -24,7 +24,7 @@ function clearhint_search_cust_svc(obj, str) { % my $href="${p}search/cust_pkg_svc.html?svcpart=".$part_svc->svcpart. % ";pkgnum=".$cust_pkg->pkgnum; - <% $part_svc->svc %> + <% $part_svc->svc |h %> (<% mt("view all [_1]", $num_cust_svc) |h %>) @@ -74,9 +74,21 @@ function clearhint_search_cust_svc(obj, str) { - <% svc_provision_link($cust_pkg, $part_svc, \%opt, $curuser) %> + + +% if ( $opt{no_links} ) { + <% $part_svc->svc |h %>: <% $part_svc->num_avail %> + <% mt('Available') |h %> +% } else { + <% svc_provision_link($cust_pkg, $part_svc, \%opt, $curuser) %> +% } + + % if ( $curuser->access_right('Bulk provision customer service') -% && $part_svc->svcdb eq 'svc_phone' ) { +% && $part_svc->svcdb eq 'svc_phone' +% && ! $opt{no_links} +% ) +% { % if ( $part_svc->num_avail > 5 ) { % local $opt{'bulk'} = 1;
<% svc_provision_link($cust_pkg, $part_svc, \%opt, $curuser) %>