X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-reason.html;h=52dc956d528eb803d1cdc7520fdebd4475153bc0;hb=715120170b58861d2957266a2802df2e412979c8;hp=9b402b0eb5cd090aa1b3e3cfe94afd7a1cd5a8d0;hpb=be2bcc10c35d7762178b245cd38382047a7e270d;p=freeside.git diff --git a/httemplate/elements/tr-select-reason.html b/httemplate/elements/tr-select-reason.html index 9b402b0eb..52dc956d5 100755 --- a/httemplate/elements/tr-select-reason.html +++ b/httemplate/elements/tr-select-reason.html @@ -70,11 +70,10 @@ Example: 'id' => $id, 'table' => 'reason', 'records' => \@reasons, - 'label_callback' => sub { my $reason = shift; - $reason->type . ' : ' . $reason->reason }, + 'name_col' => 'label', 'disable_empty' => 1, 'pre_options' => [ 0 => 'Select reason...' ], - 'post_options' => [ -1 => 'Add new reason' ], + 'post_options' => \@post_options, 'curr_value' => $init_reason, 'onchange' => $id.'_changed()', &> @@ -82,6 +81,7 @@ Example: % # "add new reason" fields % # should be a