diff options
author | Mark Wells <mark@freeside.biz> | 2014-02-19 14:08:06 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-02-19 14:08:06 -0800 |
commit | 04220e7ef18314883ad1cec05c552f13d8d5f7e4 (patch) | |
tree | 6d9be1c45ff4efb8c0d85ff54ac0dc0531cc27e1 /httemplate/view/cust_main/packages/section.html | |
parent | 7aa234a1d984001d6d311b59662ef485c344b3f8 (diff) |
collapse display of location-changed packages, #25130
Diffstat (limited to 'httemplate/view/cust_main/packages/section.html')
-rwxr-xr-x | httemplate/view/cust_main/packages/section.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/httemplate/view/cust_main/packages/section.html b/httemplate/view/cust_main/packages/section.html index 152ccaa5d..730bb2cf0 100755 --- a/httemplate/view/cust_main/packages/section.html +++ b/httemplate/view/cust_main/packages/section.html @@ -35,6 +35,25 @@ </TD> <& services.html, %iopt &> </TR> +% # insert hidden predecessors to this package, if any +% # and a rolldown button to show them +% # (we'll make it do something later) +% if ( $cust_pkg->get('changed_from_pkg') ) { + <TR CLASS="row<% $row % 2 %>"> + <TD COLSPAN=4> + <BUTTON CLASS="rolldown_button" + ID="rolldown_<% $cust_pkg->change_pkgnum %>"> + History ⬇ + </BUTTON> +% # the hidden block here has ID="cust_pkgX" where X is the first pkgnum +% # it contains. + <& hidden.html, $cust_pkg->get('changed_from_pkg'), + %iopt, + 'next_pkg' => $cust_pkg, + &> + </TD> + </TR> +% } % $row++; % # show the change target, if there is one % if ( $cust_pkg->change_to_pkg ) { |