X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages%2Fpackage.html;h=5d93ad46f17832aa5528ea5c70f1cbce82c0601f;hb=bdd45384ec9688d44f0225aff5a22be53a55ed68;hp=8cae5fdba0dbbd6933eb80b7cf54ced9e60eab94;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/httemplate/view/cust_main/packages/package.html b/httemplate/view/cust_main/packages/package.html index 8cae5fdba..5d93ad46f 100644 --- a/httemplate/view/cust_main/packages/package.html +++ b/httemplate/view/cust_main/packages/package.html @@ -13,7 +13,7 @@ % if ( $cust_pkg->quantity > 1 ) { -       Quantity: +       <% mt('Quantity:') |h %> <% $cust_pkg->quantity %> @@ -74,27 +74,27 @@ % % if ( scalar(@invoice_detail) || scalar(@comments) || $editi || $editc ) { % -% my $editlink = $p. 'edit/cust_pkg_detail?pkgnum='. $cust_pkg->pkgnum. +% my $editlink = $p. 'edit/cust_pkg_detail.html?pkgnum='. $cust_pkg->pkgnum. % ';detailtype='; % if ( @invoice_detail ) { - <% include('/elements/table-grid.html') %> + <& /elements/table-grid.html &> - Invoice details + <% mt('Invoice details') |h %> % if ( $editi && ! $cust_pkg->get('cancel') ) { - (<% include('/elements/popup_link.html', { + (<& /elements/popup_link.html, { 'action' => $editlink. 'I', - 'label' => 'edit', - 'actionlabel' => 'Edit invoice details', + 'label' => emt('edit'), + 'actionlabel' => emt('Edit invoice details'), 'color' => '#333399', 'width' => 763, - }) - %>) + } + &>) % } @@ -112,8 +112,8 @@ ( <% include('/elements/popup_link.html', { 'action' => $editlink. 'I', - 'label' => 'Add invoice details', - 'actionlabel' => 'Add invoice details', + 'label' => emt('Add invoice details'), + 'actionlabel' => emt('Add invoice details'), 'color' => '#333399', 'width' => 763, }) @@ -125,20 +125,20 @@ % if ( @comments ) { - <% include('/elements/table-grid.html') %> + <& /elements/table-grid.html &> - Comments + <% mt('Comments') |h %> % if ( $editc ) { - (<% include('/elements/popup_link.html', { + (<& /elements/popup_link.html, { 'action' => $editlink. 'C', - 'label' => 'edit', - 'actionlabel' => 'Edit comments', + 'label' => emt('edit'), + 'actionlabel' => emt('Edit comments'), 'color' => '#333399', 'width' => 763, - }) - %>) + } + &>) % } @@ -154,14 +154,14 @@ % if ( $editc ) { - ( <% include('/elements/popup_link.html', { + ( <& /elements/popup_link.html, { 'action' => $editlink. 'C', - 'label' => 'Add comments', - 'actionlabel' => 'Add comments', + 'label' => emt('Add comments'), + 'actionlabel' => emt('Add comments'), 'color' => '#333399', 'width' => 763, - }) - %> ) + } + &> ) % } @@ -210,8 +210,8 @@ sub pkg_change_link { my $locationnum = $cust_pkg->locationnum; include( '/elements/popup_link-cust_pkg.html', 'action' => $p. "misc/change_pkg.cgi?locationnum=$locationnum", - 'label' => 'Change package', - 'actionlabel' => 'Change', + 'label' => emt('Change package'), + 'actionlabel' => emt('Change'), 'cust_pkg' => $cust_pkg, ); } @@ -223,22 +223,20 @@ sub pkg_change_location_link { 'action' => $p. "misc/change_pkg.cgi?locationnum=-1;pkgpart=$pkgpart;". "address1=;address2=;city=;county=;state=$statedefault;". "zip=;country=$countrydefault", - 'label' => 'Change location', - 'actionlabel' => 'Change', + 'label' => emt('Change location'), + 'actionlabel' => emt('Change'), 'cust_pkg' => $cust_pkg, ); } -sub pkg_dates_link { pkg_link('edit/REAL_cust_pkg', 'Edit dates', @_ ); } +sub pkg_dates_link { pkg_link('edit/REAL_cust_pkg', emt('Edit dates'), @_ ); } sub pkg_discount_link { my $cust_pkg = shift or return ''; - #my $part_pkg = shift; - #my $custnum = $cust_pkg->custnum; include( '/elements/popup_link-cust_pkg.html', 'action' => $p.'edit/cust_pkg_discount.html', - 'label' => 'Discount', - 'actionlabel' => 'Discount', + 'label' => emt('Discount'), + 'actionlabel' => emt('Discount'), 'cust_pkg' => $cust_pkg, 'width' => 616, ); @@ -251,13 +249,13 @@ sub pkg_customize_link { qq!Customize!; + qq!">!.emt('Customize').''; } sub pkg_event_link { my($cust_pkg) = @_; qq!!. - 'View package events'. + emt('View package events'). ''; }