diff options
author | ivan <ivan> | 2011-06-16 23:06:20 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-06-16 23:06:20 +0000 |
commit | dbe1f22d63052dbbfe8b3cb578a0d831213ebb75 (patch) | |
tree | 64d085d5a4045b5e95b84c09a13146e34cb4450e /httemplate/view/cust_main/packages | |
parent | d01937e1d00012b5221f676178710e4e47618c2c (diff) |
rework suspension delays, RT#6956
Diffstat (limited to 'httemplate/view/cust_main/packages')
-rw-r--r-- | httemplate/view/cust_main/packages/status.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html index 4492dad89..537554e86 100644 --- a/httemplate/view/cust_main/packages/status.html +++ b/httemplate/view/cust_main/packages/status.html @@ -172,6 +172,7 @@ <% pkg_status_row_if( $cust_pkg, $last_bill_or_renewed, 'last_bill', %opt, curuser=>$curuser ) %> <% pkg_status_row_if( $cust_pkg, $next_bill_or_prepaid_until, 'bill', %opt, curuser=>$curuser ) %> <% pkg_status_row_if($cust_pkg, emt('Will automatically suspend by'), 'autosuspend', %opt) %> + <% pkg_status_row_if($cust_pkg, emt('Automatic suspension delayed until'), 'dundate', %opt) %> <% pkg_status_row_if( $cust_pkg, emt('Will suspend on'), 'adjourn', %opt, curuser=>$curuser ) %> <% pkg_status_row_if( $cust_pkg, emt('Expires'), 'expire', %opt, curuser=>$curuser ) %> <% pkg_status_row_if( $cust_pkg, emt('Contract ends'), 'contract_end', %opt ) %> @@ -422,11 +423,15 @@ sub pkg_adjourn_link { } sub pkg_delay_link { + my($cust_pkg) = shift; include( '/elements/popup_link-cust_pkg.html', 'action' => $p. 'misc/delay_susp_pkg.html', - 'label' => emt('Delay suspend'), + 'label' => ( $cust_pkg->dundate + ? emt('Edit suspension delay') + : emt('Delay suspend') + ), 'actionlabel' => emt('Delay suspend for'), - 'cust_pkg' => shift, + 'cust_pkg' => $cust_pkg, ) } |