X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-part_pkg.html;h=237d7df0af4e9a56f6cffcc720679b4bb333057f;hb=45d0f6c6325fb8ab5fdc478a7dc278872defa479;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..237d7df0a 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_only }, + 'hashref' => \%hash, + %opt, +&> <%init> my( %opt ) = @_;