X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pkg_detail.html;h=a1a6db6d3fd0f4334aef17e16c4f89089b5811c7;hp=009ed5c6e34d80cb92f362d76d468754686e6d2d;hb=ac8410cdb67639afeb84c84e975fffadf3e6cce1;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2 diff --git a/httemplate/edit/cust_pkg_detail.html b/httemplate/edit/cust_pkg_detail.html index 009ed5c6e..a1a6db6d3 100644 --- a/httemplate/edit/cust_pkg_detail.html +++ b/httemplate/edit/cust_pkg_detail.html @@ -1,9 +1,4 @@ -<% include("/elements/header-popup.html", $title, '', - ( $cgi->param('error') ? '' : 'onload="addRow()"' ), - ) -%> - -%# <% include('/elements/error.html') %> +<& /elements/header-popup.html, $title &>
@@ -28,7 +23,7 @@ Comment - <% $part_pkg->comment %> + <% $part_pkg->comment |h %> @@ -40,17 +35,10 @@ <% ucfirst($name{$detailtype}) %>: -% my $row = 0; -% for ( @details ) { - - - - - - - - -% } +<& elements/detail-table.html, + id => 'DetailTable', + details => \@details, + &> @@ -59,47 +47,6 @@
- - <%init> @@ -135,7 +82,7 @@ my $cust_pkg = qsearchs({ my $part_pkg = $cust_pkg->part_pkg; -my @details = $cust_pkg->cust_pkg_detail($detailtype); +my @details = map { $_->detail } $cust_pkg->cust_pkg_detail($detailtype); my $title = ( scalar(@details) ? 'Edit ' : 'Add ' ). $name{$detailtype};