X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=43ebb282b188bd831640ba5dac6b653eca2247ec;hp=ed4ca60c48568e48599b739f9803731f14de56ac;hb=a832fdcc15e848eb6b63998403cad11cf3d6e3c3;hpb=c58774a70c3326ad2ba5a7a38b174dfbd76a9f78 diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index ed4ca60c4..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 ( $curuser->access_right('Order customer package') ) { - <% $s++ ? ' | ' : '' %> - <% include('order_pkg_link.html', $cust_main) %> -% } +
-% if ( $curuser->access_right('One-time charge')
-% && $conf->config('payby-default') ne 'HIDE'
-% ) {
- <% $s++ ? ' | ' : '' %>
- <% include('one_time_charge_link.html', $cust_main) %>
-% }
+% my $br = 0;
-% if ( $curuser->access_right('Bulk change customer packages') ) {
- <% $s++ ? ' | ' : '' %>
- Bulk order and cancel packages (preserves services)
-% }
+% 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)', + ], + &> +% } -
| ||||||||
-% } else {
- -% } +% $opt{cust_main} = $cust_main; +% $opt{packages} = \@packages; +% $opt{cust_location_cache} = {}; +% if ( $conf->exists('cust_pkg-group_by_location') ) { + <& locations.html, %opt &> +% } else { # in this format, put all packages in one section + <& /elements/table-grid.html &> + <& packages/section.html, %opt &> + |