X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-part_pkg.html;h=bf581911807aa5c4995dfba73c5c0f9958c56888;hb=1b961dca9ac3d9904991926c73121b8e7a45a451;hp=439c4b53ed631ead17fbdef46554ce3f2aad9a8b;hpb=a78d8300b4be8ff4fbb4b5c64139d4c442b16c2f;p=freeside.git diff --git a/httemplate/elements/select-part_pkg.html b/httemplate/elements/select-part_pkg.html index 439c4b53e..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', 'can_start_date' ], - %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 ) = @_;