<% include( 'elements/edit.html', 'name' => 'Advertising source', 'table' => 'part_referral', 'fields' => [ 'referral', { field=>'agentnum', type=>'select-agent', }, ], 'labels' => { 'referral' => 'Advertising source', 'agentnum' => 'Agent', }, 'viewall_dir' => 'browse', ) %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Edit advertising sources') || $FS::CurrentUser::CurrentUser->access_right('Edit global advertising sources');