From 7fdbfcef21985e7c8455929eb0ad70c0863ac47b Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 30 Jun 2016 23:21:17 -0500 Subject: RT#17599: display cancelled services from history [display unprovisionable services from history] --- httemplate/misc/cancel_pkg.html | 7 +++++-- httemplate/view/cust_main/packages/services.html | 11 +++++++---- httemplate/view/cust_main/packages/status.html | 2 ++ 3 files changed, 14 insertions(+), 6 deletions(-) (limited to 'httemplate') diff --git a/httemplate/misc/cancel_pkg.html b/httemplate/misc/cancel_pkg.html index 140964af1..d77c47ed6 100755 --- a/httemplate/misc/cancel_pkg.html +++ b/httemplate/misc/cancel_pkg.html @@ -60,12 +60,14 @@ % foreach my $uncancel_svc (@uncancel_svcs) { % my $uncancel_curr_value = $uncancel_svc->{'uncancel_svcnum'}; % my $uncancel_disabled = ''; +% my $uncancel_postfix = ''; % if ($cgi->param('error')) { -% $uncancel_curr_value = '' unless grep { $_ == $uncancel_svc->{'_uncancel_svcnum'} } $cgi->param('only_svcnum'); +% $uncancel_curr_value = '' unless grep { $_ == $uncancel_svc->{'uncancel_svcnum'} } $cgi->param('only_svcnum'); % } % unless ($uncancel_svc->{'reprovisionable'}) { % $uncancel_curr_value = ''; % $uncancel_disabled = 1; +% $uncancel_postfix = '(' . emt('Cannot be reprovisioned') . ')'; % } <& /elements/tr-checkbox.html, 'label' => $uncancel_svc->{'svc'} . ': ' . $uncancel_svc->{'label'}, @@ -73,7 +75,8 @@ 'value' => $uncancel_svc->{'uncancel_svcnum'}, 'curr_value' => $uncancel_curr_value, 'disabled' => $uncancel_disabled, - 'cell_style' => 'font-weight: normal;' + 'cell_style' => 'font-weight: normal', + 'postfix' => $uncancel_postfix, &> % } % } diff --git a/httemplate/view/cust_main/packages/services.html b/httemplate/view/cust_main/packages/services.html index 352f5ea9d..a23a4c2fe 100644 --- a/httemplate/view/cust_main/packages/services.html +++ b/httemplate/view/cust_main/packages/services.html @@ -110,13 +110,16 @@ function clearhint_search_cust_svc(obj, str) { % } #foreach part_svc % if ($cust_pkg->get('cancel')) { -% foreach my $svc (sort { $a->{'svcpart'} <=> $b->{'svcpart'} } -% $cust_pkg->uncancel_svc_summary('summarize_size' => $opt{'cust_pkg-large_pkg_size'}) +% foreach my $svc ( +% $cust_pkg->uncancel_svc_summary('summarize_size' => $opt{'cust_pkg-large_pkg_size'}, 'no_test_reprovision' => 1) % ) { -% next unless $svc->{'reprovisionable'}; <% $svc->{'svc'} |h %> - <% $svc->{'label'} |h %> + + <% $svc->{'num_cust_svc'} + ? $svc->{'num_cust_svc'} . ' ' . emt('services in history') + : (defined($svc->{'label'}) ? $svc->{'label'} : emt('(cannot load svc label)')) |h %> + % } % } diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html index a6bd0cef4..12608ee2c 100644 --- a/httemplate/view/cust_main/packages/status.html +++ b/httemplate/view/cust_main/packages/status.html @@ -679,6 +679,8 @@ sub pkg_uncancel_link { 'actionlabel' => emt('Un-cancel'), #'color' => #? 'cust_pkg' => shift, + 'width' => 960, + 'height' => 740, ) } -- cgit v1.2.1