X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-part_referral.html;h=a589528d780942510c85e450f4862abe8d0e34e4;hb=7a7bcda9d75c951df9c911ce60d5b0551765daf2;hp=cd26c254db2f60ca83e1c2212548b313340d366f;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;p=freeside.git diff --git a/httemplate/elements/tr-select-part_referral.html b/httemplate/elements/tr-select-part_referral.html index cd26c254d..a589528d7 100644 --- a/httemplate/elements/tr-select-part_referral.html +++ b/httemplate/elements/tr-select-part_referral.html @@ -1,5 +1,5 @@ % if ( scalar( @{$opt{'part_referrals'}} ) == 0 ) { -% eidiot "You have not created any advertising sources. You must create at least one advertising source before adding a customer. Go to ". popurl(2). "browse/part_referral.html and create one or more advertising sources."; +

You have not created any advertising sources. You must create at least one advertising source before adding a customer. Go to advertising source listing and create one or more advertising sources. % } elsif ( scalar( @{$opt{'part_referrals'}} ) == 1 ) { @@ -12,7 +12,7 @@ % } else { <%$r%>Advertising source % } - + <% include( '/elements/select-part_referral.html', 'curr_value' => $refnum, %opt @@ -30,6 +30,8 @@ my $refnum = $opt{'curr_value'} || $opt{'value'}; $opt{'part_referrals'} ||= [ FS::part_referral->all_part_referral( 1 ) ]; #1: include global +my $colspan = delete($opt{'colspan'}) || 1; + my $r = qq!* !;