1 <% include( 'elements/edit.html',
2 'name' => 'Advertising source',
3 'table' => 'part_referral',
4 'fields' => [ 'referral',
5 { field=>'agentnum', type=>'select-agent', },
7 'labels' => { 'referral' => 'Advertising source',
10 'viewall_dir' => 'browse',
16 unless $FS::CurrentUser::CurrentUser->access_right('Edit advertising sources')
17 || $FS::CurrentUser::CurrentUser->access_right('Edit global advertising sources');