X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprospect_main.html;h=da5c6ce37d68663dbff68692351c0f0f58c8bfef;hb=f33281a9f445b06e319c45f393c71577701eff67;hp=ab01930e5a0784ca1359bbb89830a50802e0233c;hpb=8d534e61d74e561a15f0863a835cda4af639a9ea;p=freeside.git diff --git a/httemplate/edit/prospect_main.html b/httemplate/edit/prospect_main.html index ab01930e5..da5c6ce37 100644 --- a/httemplate/edit/prospect_main.html +++ b/httemplate/edit/prospect_main.html @@ -3,6 +3,7 @@ 'table' => 'prospect_main', 'labels' => { 'prospectnum' => 'Prospect', 'agentnum' => 'Agent', + 'refnum' => 'Advertising source', 'company' => 'Company', 'contactnum' => 'Contact', 'locationnum' => ' ', @@ -13,6 +14,11 @@ 'empty_label' => 'Select agent', 'colspan' => 6, }, + { 'field' => 'refnum', + 'type' => 'select-part_referral', + 'empty_label' => 'Select advertising source', + 'colspan' => 6, + }, { 'field' => 'residential_commercial', 'type' => 'radio', 'options' => [ 'Residential', 'Commercial', ], @@ -36,6 +42,9 @@ 'empty_label' => 'No address', 'disable_empty' => $conf->exists('prospect_main-location_required'), 'alt_format' => $conf->exists('prospect_main-alt_address_format'), + 'include_opt_callback' => sub { + 'prospect_main' => shift + }, }, ], 'new_callback' => $new_callback, @@ -184,8 +193,10 @@ my $javascript = <