diff options
Diffstat (limited to 'httemplate/search/report_cust_pkg.html')
-rwxr-xr-x | httemplate/search/report_cust_pkg.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html index 5e8c429ec..981c54607 100755 --- a/httemplate/search/report_cust_pkg.html +++ b/httemplate/search/report_cust_pkg.html @@ -65,10 +65,29 @@ 'onchange' => 'status_changed(this);', &> + <& /elements/tr-select-reason.html, + 'field' => 'reasonnum', + 'reason_class' => 'S', + 'label' => 'Suspended Reason', + 'label_id' => 'reasonnum_label', + 'hide_addnew' => '1', + 'hide_onload' => '1', + 'cgi' => $cgi, + 'control_button' => 'confirm_suspend_cust_button', + 'pre_options' => [ 0 => 'all' ], + &> + <SCRIPT TYPE="text/javascript"> function status_changed(what) { + if (what.options[what.selectedIndex].value == 'suspended') { + document.getElementById('reasonnum_row').style.visibility = 'visible'; + } + else { + document.getElementById('reasonnum_row').style.visibility = 'collapse'; + } + % foreach my $status ( '', FS::cust_pkg->statuses() ) { if ( what.options[what.selectedIndex].value == '<% $status %>' ) { |