X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=0dc65a7885a1624a064378497697e8e8c98cc7cf;hb=66feacf4ed45aa7b27d48f91c0d8741f0ad9b9de;hp=ed4ca60c48568e48599b739f9803731f14de56ac;hpb=c58774a70c3326ad2ba5a7a38b174dfbd76a9f78;p=freeside.git diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index ed4ca60c4..0dc65a788 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -1,38 +1,151 @@ -% 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 &> + |