X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=740d1544a46f2f288263c7c73293e24ced0032a5;hb=dd65ba99bb9281571f19744154a3b03bcd3f01ab;hp=afd9941f6e965b3fcd4bbd15ca401a4652cea1ad;hpb=a661ced3f9f678a645780eaa0b183d2de5f100fa;p=freeside.git
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html
index afd9941f6..740d1544a 100755
--- a/httemplate/view/cust_main/packages.html
+++ b/httemplate/view/cust_main/packages.html
@@ -1,105 +1,36 @@
-Packages
-
-% if ( $curuser->access_right('One-time charge') ) {
-
-
-
+ % if ( @$packages ) { -Current packages +<% mt('Current packages') |h %> % } % if ( $cust_main->num_cancelled_pkgs ) { % if ( $cgi->param('showcancelledpackages') eq '0' #see if it was set by me @@ -108,66 +39,59 @@ Current packages % ) % ) % { +% my $prev = $cgi->param('showcancelledpackages'); % $cgi->param('showcancelledpackages', 1); -% - - ( show + ( <% mt('show') |h %> +% $cgi->param('showcancelledpackages', $prev); % } else { % $cgi->param('showcancelledpackages', 0); -% - - ( hide + ( <% mt('hide') |h %> +% $cgi->param('showcancelledpackages', 1); % } - cancelled packages ) + <% mt('cancelled packages') |h %> ) % } -% if ( @$packages ) { - -<% include('/elements/table-grid.html') %> -% my $bgcolor1 = '#eeeeee'; -% my $bgcolor2 = '#ffffff'; -% my $bgcolor = ''; - - | |||
Package | -Status | -% if ( $show_location ) { -Location | +% if ( $num_old_packages ) { +% $cgi->param('showoldpackages', 1); + ( <% mt('show old packages') |h %> ) +% } elsif ( $cgi->param('showoldpackages') ) { +% $cgi->param('showoldpackages', 0); + ( <% mt('hide old packages') |h %> ) % } -Services | -
---|---|---|---|
+ <% mt('Package reports') |h %> +% if ( $curuser->access_right('Qualify service') ) { + | <% mt('View Qualifications') |h %> % } - <% include('packages/services.html', %iopt) %> - | |||
+% 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, + 'packages' => $packages, + 'show_location' => $show_location, + &> |