X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_referral.html;h=daf8773f02706fa7aa147daaf28358da8a205e4a;hb=e0a26680d75fc2000bde195eba7946805a3aaa28;hp=ec0f32f58279b93dcf061dac4416cbb391f4c9c7;hpb=264ad081e68057c7bc30a8b2ad741b783e1342ff;p=freeside.git diff --git a/httemplate/edit/part_referral.html b/httemplate/edit/part_referral.html index ec0f32f58..daf8773f0 100755 --- a/httemplate/edit/part_referral.html +++ b/httemplate/edit/part_referral.html @@ -1,9 +1,19 @@ -<%= include( 'elements/edit.html', +<% include( 'elements/edit.html', 'name' => 'Advertising source', 'table' => 'part_referral', - 'fields' => [ 'referral' ], - 'labels' => { 'referral' => 'Advertising source' }, + 'fields' => [ 'referral', + { field=>'agentnum', type=>'select-agent', }, + ], + 'labels' => { 'referral' => 'Advertising source', + 'agentnum' => 'Agent', + }, 'viewall_dir' => 'browse', - 'html_table_bottom' => include('/elements/tr-select-agent.html'), ) %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Edit advertising sources') + || $FS::CurrentUser::CurrentUser->access_right('Edit global advertising sources'); + +