X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=43ebb282b188bd831640ba5dac6b653eca2247ec;hb=4b05b20576ddb14577d59c87c8257c6804449410;hp=e16b2c1d40a0a59f89a31019cc339f69eeaad6c4;hpb=8cbe016ac2c28cd209c48f053f361573368e7988;p=freeside.git
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html
index e16b2c1d4..43ebb282b 100755
--- a/httemplate/view/cust_main/packages.html
+++ b/httemplate/view/cust_main/packages.html
@@ -1,37 +1,150 @@
-% my $s = 0;
+
-
+% # activate rolldown buttons for hidden package blocks
+
-% if ( @$packages ) { +% my $br = 0; -<% mt('Current packages') |h %> -% } +% if ( $total_pkgs > $maxrecords ) { + +% if ( 1 ) { #FS::pkg_class->num_pkg_class ) { + <% $br++ ? ' | ' : '' %> + Class: <& /elements/select-cust-pkg_class.html, + curr_value => scalar($cgi->param('classnum')), + onchange => 'classnum_changed(this);', + pre_options => [ '-1' => 'all', + '0' => '(none)', + ], + &> +% } + + <% $br++ ? ' | ' : '' %> + Status: <& /elements/select-cust_pkg-status.html, + curr_value => scalar($cgi->param('status')), + onchange => 'status_changed(this);', + &> + +% if ( 1 ) { #$cust_main->num_cust_location ) { + <% $br++ ? ' | ' : '' %> + Location: <& /elements/select-cust_location.html, + cust_main => $cust_main, + curr_value => scalar($cgi->param('locationnum')), + addnew => 0, + onchange => 'locationnum_changed(this);', + pre_options => [ '-1' => 'all', ], + &> +% } + + + +% } + +<% $br++ ? ' | ' : '' %> % if ( $cust_main->num_cancelled_pkgs ) { % if ( $cgi->param('showcancelledpackages') eq '0' #see if it was set by me % || ( $conf->exists('hidecancelledpackages') @@ -41,68 +154,71 @@ % { % my $prev = $cgi->param('showcancelledpackages'); % $cgi->param('showcancelledpackages', 1); - ( <% mt('show') |h %> + <% mt('show') |h %> % $cgi->param('showcancelledpackages', $prev); % } else { % $cgi->param('showcancelledpackages', 0); - ( <% mt('hide') |h %> + <% mt('hide') |h %> % $cgi->param('showcancelledpackages', 1); % } - <% mt('cancelled packages') |h %> ) + <% mt('cancelled packages') |h %> % } -% if ( $num_old_packages ) { + +<% $br++ ? ' | ' : '' %> +% if ( $cgi->param('showoldpackages') ) { +% $cgi->param('showoldpackages', 0); + <% mt('hide old packages') |h %> % $cgi->param('showoldpackages', 1); - ( <% mt('show old packages') |h %> ) -% } elsif ( $cgi->param('showoldpackages') ) { +% } else { +% $cgi->param('showoldpackages', 1); + <% mt('show old packages') |h %> % $cgi->param('showoldpackages', 0); - ( <% mt('hide old packages') |h %> ) % } | -
- <% mt('Package reports') |h %>
-% if ( $curuser->access_right('Qualify service') ) {
- | <% mt('View Qualifications') |h %>
-% }
- - <% mt('Service reports:') |h %> - <% mt('accounts') |h %> - <% mt('Usage reports:') |h %> - <% mt('CDRs') |h %> - |
+
-% if ( $conf->exists('cust_pkg-group_by_location') and $show_location ) { -<& locations.html, - 'cust_main' => $cust_main, - 'packages' => $packages, - &> -% } -% else { -% # in this format, put all packages in one section -<& /elements/table-grid.html &> -<& packages/section.html, - 'cust_main' => $cust_main, - 'packages' => $packages, - 'show_location' => $show_location, - &> - |