X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_referral.html;h=04287d63202e44b40d9c59bd5b8ad79b956e65c8;hp=7ce52174da748d8dbab8b3848896c9c12241aa85;hb=46fe3dbcb3ca97d1f3c70d49351846cf0ab6461d;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e diff --git a/httemplate/edit/part_referral.html b/httemplate/edit/part_referral.html index 7ce52174d..04287d632 100755 --- a/httemplate/edit/part_referral.html +++ b/httemplate/edit/part_referral.html @@ -1,9 +1,24 @@ <% include( 'elements/edit.html', 'name' => 'Advertising source', 'table' => 'part_referral', - 'fields' => [ 'referral' ], - 'labels' => { 'referral' => 'Advertising source' }, + 'fields' => [ 'referral', + { field=>'agentnum', type=>'select-agent', }, + 'title', + { field=>'disabled', type=>'checkbox', value=>'Y' } , + ], + 'labels' => { 'refnum' => 'Ad Source', + 'referral' => 'Advertising source', + 'agentnum' => 'Agent', + 'title' => 'External ID', + 'disabled' => 'Disabled', + }, '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'); + +