X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fprospect_main.html;h=1c8195672953466a42612064d08db476b32f04e0;hb=822645aade15a4c4ac0558b116f7aacf9491002c;hp=9883e67663bc1fcd4da6e78b6bfba0d76ca617e1;hpb=f22b714f2b7a38c8a930d8248ccb32751db82b5e;p=freeside.git diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html index 9883e6766..1c8195672 100644 --- a/httemplate/view/prospect_main.html +++ b/httemplate/view/prospect_main.html @@ -14,7 +14,8 @@ <% $prospectnum %> -%unless ( scalar(@agentnums) == 1 ) { +%unless ( scalar(@agentnums) == 1 +% && !$curuser->access_right('View customers of all agents') ) { % my $agent = qsearchs('agent',{ 'agentnum' => $prospect_main->agentnum } ); Agent @@ -22,10 +23,12 @@ %} - - Company - <% $prospect_main->company |h %> - +% if ( $prospect_main->company ) { + + Company + <% $prospect_main->company |h %> + +% } % foreach my $contact ( $prospect_main->contact ) { @@ -48,13 +51,35 @@ ) %> - + +% if ( $cust_location->latitude && $cust_location->longitude ) { + <& /elements/tr-coords.html, $cust_location->latitude, + $cust_location->longitude, + $prospect_main->name, + &> +% } % }
+% if ( $curuser->access_right('Qualify service') ) { +<% include( '/elements/popup_link-prospect_main.html', + 'action' => $p. 'misc/qual.html', + 'label' => 'New Qualification', + 'actionlabel' => 'New Qualification', + 'color' => '#333399', + 'prospect_main' => $prospect_main, + 'closetext' => 'Close', + 'width' => 763, + 'height' => 436, + ) +%> + | View Qualifications +

+% } + <% ntable("#cccccc") %>