X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=0dc65a7885a1624a064378497697e8e8c98cc7cf;hb=66feacf4ed45aa7b27d48f91c0d8741f0ad9b9de;hp=8ff2269ab6589c18861464caf4dab29432f18eea;hpb=c9ac50fa78dcf1f9ac3dda747448ee8ef703d69c;p=freeside.git
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html
index 8ff2269ab..0dc65a788 100755
--- a/httemplate/view/cust_main/packages.html
+++ b/httemplate/view/cust_main/packages.html
@@ -1,204 +1,372 @@
-Packages
-
-% my $s = 0;
-% if ( $curuser->access_right('Order customer package') ) {
- <% $s++ ? ' | ' : '' %>
- <% include( '/elements/popup_link-cust_main.html',
- 'action' => $p. 'misc/order_pkg.html',
- 'label' => 'Order new package',
- 'actionlabel' => 'Order new package',
- 'color' => '#333399',
- 'cust_main' => $cust_main,
- 'closetext' => 'Close',
- 'width' => 763,
- )
- %>
-% }
+
+
+% # activate rolldown buttons for hidden package blocks
+
+
+
+
+% my $br = 0;
+
+% 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)',
+ ],
+ &>
+% }
- -% if ( @$packages ) { + <% $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', ], + &> +% } + + + +% } -Current packages -% } % if ( $cust_main->num_cancelled_pkgs ) { + <% $br++ ? ' | ' : '' %> % if ( $cgi->param('showcancelledpackages') eq '0' #see if it was set by me % || ( $conf->exists('hidecancelledpackages') % && ! $cgi->param('showcancelledpackages') % ) % ) % { +% 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 ( $num_old_packages ) { + +<% $br++ ? ' | ' : '' %> +% if ( $cgi->param('showoldpackages') ) { +% $cgi->param('showoldpackages', 0); + <% mt('hide old packages') |h %> +% $cgi->param('showoldpackages', 1); +% } else { % $cgi->param('showoldpackages', 1); - ( show old packages ) -% } elsif ( $cgi->param('showoldpackages') ) { + <% mt('show old packages') |h %> % $cgi->param('showoldpackages', 0); - ( hide old packages ) -% } -% if ( @$packages ) { - -<% include('/elements/table-grid.html') %> -% my $bgcolor1 = '#eeeeee'; -% my $bgcolor2 = '#ffffff'; -% my $bgcolor = ''; - - | |||
Package | -Status | -% if ( $show_location ) { -Location | -% } -Services | -
---|---|---|---|
+ <% $pager %> + | +