X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-part_pkg.html;h=bf581911807aa5c4995dfba73c5c0f9958c56888;hb=167dbdad01e2c1b62fd9be43cc05212e8c874a02;hp=885bb806bfb9371e2915db0e855f4a5816b0d612;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git diff --git a/httemplate/elements/select-part_pkg.html b/httemplate/elements/select-part_pkg.html index 885bb806b..bf5819118 100644 --- a/httemplate/elements/select-part_pkg.html +++ b/httemplate/elements/select-part_pkg.html @@ -15,18 +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, - 'extra_option_attributes' => [ 'can_discount' ], - %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 ) = @_;