From 4289ed53f86f18d6107339db5b7cee38f64533c0 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 25 Mar 2014 16:33:19 -0700 Subject: improve performance of package add/edit (don't pull up pricing info in add-on/supplemental package dropdowns), RT#24000 --- httemplate/elements/select-part_pkg.html | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'httemplate/elements/select-part_pkg.html') diff --git a/httemplate/elements/select-part_pkg.html b/httemplate/elements/select-part_pkg.html index 9d41b07dc..bf5819118 100644 --- a/httemplate/elements/select-part_pkg.html +++ b/httemplate/elements/select-part_pkg.html @@ -15,17 +15,16 @@ Example: -<% include( '/elements/select-table.html', - 'table' => 'part_pkg', - 'agent_virt' => 1, - 'agent_null' => 1, - 'name_col' => 'pkg', - 'empty_label' => 'Select package', #should this be the default? - 'label_callback' => sub { shift->pkg_comment }, - 'hashref' => \%hash, - %opt, - ) -%> +<& /elements/select-table.html, + 'table' => 'part_pkg', + 'agent_virt' => 1, + 'agent_null' => 1, + 'name_col' => 'pkg', + 'empty_label' => 'Select package', #should this be the default? + 'label_callback' => $opt{'label_callback'} || sub { shift->pkg_comment }, + 'hashref' => \%hash, + %opt, +&> <%init> my( %opt ) = @_; -- cgit v1.2.1