X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fprospect_main.html;h=d65d4d19ddd57eb3a72dc4b2bd36fe76e68438bb;hp=328d1202f05c0046697257321e22db1df966439d;hb=cd1555c36924e21a9894b29071d76911ec277d9a;hpb=8d534e61d74e561a15f0863a835cda4af639a9ea diff --git a/httemplate/search/prospect_main.html b/httemplate/search/prospect_main.html index 328d1202f..d65d4d19d 100644 --- a/httemplate/search/prospect_main.html +++ b/httemplate/search/prospect_main.html @@ -1,4 +1,4 @@ -<% include('elements/search.html', +<& elements/search.html, 'title' => 'Prospect Search Results', 'name_singular' => 'prospect', 'query' => $query, @@ -6,25 +6,33 @@ 'header' => [ '#', 'Prospect', 'Contact(s)', + 'Advertising source', ], 'fields' => [ 'prospectnum', 'name', sub { my $pm = shift; [ map { - [ { 'data' => $_->line, }, ]; + [ { 'data'=>$_->contact->line, }, ]; } - $pm->contact + $pm->prospect_contact ]; + '' + }, + sub { + my $pr = shift->part_referral; + $pr ? $pr->referral : ''; }, ], 'links' => [ '', $link, '', #link to contact edit??? + '', ], 'agent_virt' => 1, - ) -%> + 'disableable' => 1, + 'disabled_statuspos' => 2, +&> <%init> die "access denied" @@ -36,7 +44,7 @@ my %search_hash = (); #scalars my @scalars = qw ( - agentnum + agentnum refnum ); for my $param ( @scalars ) {