X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=566ab294384a86dcaaa27e1b97c8112839391938;hb=91dbe4c3834f38d428367d9a1e2c6cf9ea9d84a4;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..566ab2943 100755
--- a/httemplate/view/cust_main/packages.html
+++ b/httemplate/view/cust_main/packages.html
@@ -1,106 +1,77 @@
-Packages
-
-% if ( $curuser->access_right('One-time charge') ) {
-
-
-
+ % if ( $cust_main->num_cancelled_pkgs ) { % if ( $cgi->param('showcancelledpackages') eq '0' #see if it was set by me % || ( $conf->exists('hidecancelledpackages') @@ -108,66 +79,67 @@ 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 %>
+% }
+ + <% mt('Service reports:') |h %> + <% mt('accounts') |h %> + <% mt('Usage reports:') |h %> + <% mt('CDRs') |h %> + |
+
+% } # unless $opt{no_links}
+
+
+
+ |||
+% if ( $conf->exists('cust_pkg-group_by_location') ) { +<& locations.html, + 'cust_main' => $cust_main, + 'packages' => $packages, + %opt, + &> +% } +% else { +% # in this format, put all packages in one section +<& /elements/table-grid.html &> +<& packages/section.html, + 'cust_main' => $cust_main, + 'packages' => $packages, + %opt, + &> |